aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/internal/obj/arm/asm5.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/internal/obj/arm/asm5.go')
-rw-r--r--src/cmd/internal/obj/arm/asm5.go17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/cmd/internal/obj/arm/asm5.go b/src/cmd/internal/obj/arm/asm5.go
index f235751cb6..f49ee65a04 100644
--- a/src/cmd/internal/obj/arm/asm5.go
+++ b/src/cmd/internal/obj/arm/asm5.go
@@ -419,8 +419,8 @@ func asmoutnacl(ctxt *obj.Link, origPC int32, p *obj.Prog, o *Optab, out []uint3
} else {
a2 = &q.From
}
- obj.Nocache(q)
- obj.Nocache(p)
+ nocache(q)
+ nocache(p)
// insert q after p
q.Link = p.Link
@@ -496,8 +496,8 @@ func asmoutnacl(ctxt *obj.Link, origPC int32, p *obj.Prog, o *Optab, out []uint3
} else {
a2 = &q.From
}
- obj.Nocache(q)
- obj.Nocache(p)
+ nocache(q)
+ nocache(p)
// insert q after p
q.Link = p.Link
@@ -2829,3 +2829,12 @@ func chipfloat5(ctxt *obj.Link, e float64) int {
//print("match %.8lux %.8lux %d\n", l, h, n);
return n
}
+
+func nocache(p *obj.Prog) {
+ p.Optab = 0
+ p.From.Class = 0
+ if p.From3 != nil {
+ p.From3.Class = 0
+ }
+ p.To.Class = 0
+}