summaryrefslogtreecommitdiff
path: root/src/arch/sparc/isa/decoder.isa
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/sparc/isa/decoder.isa')
-rw-r--r--src/arch/sparc/isa/decoder.isa4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/sparc/isa/decoder.isa b/src/arch/sparc/isa/decoder.isa
index 95868337e..58141edcf 100644
--- a/src/arch/sparc/isa/decoder.isa
+++ b/src/arch/sparc/isa/decoder.isa
@@ -1434,14 +1434,14 @@ decode OP default Unknown::unknown()
}
}
0x3C: CasAlt::casa({{
- mem_data = htog(Rs2_uw);
+ mem_data = htobe(Rs2_uw);
Mem_uw = Rd_uw;}},
{{
uint32_t tmp = mem_data;
Rd_uw = tmp;
}}, MEM_SWAP_COND);
0x3D: Nop::prefetcha();
- 0x3E: CasAlt::casxa({{mem_data = gtoh(Rs2);
+ 0x3E: CasAlt::casxa({{mem_data = betoh(Rs2);
Mem_udw = Rd_udw; }},
{{ Rd_udw = mem_data; }}, MEM_SWAP_COND);
}