diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/arch/sparc/decoder.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/sparc/decoder.hh b/src/arch/sparc/decoder.hh index 8124a6963..999d0ed06 100644 --- a/src/arch/sparc/decoder.hh +++ b/src/arch/sparc/decoder.hh @@ -70,11 +70,11 @@ class Decoder // should come from. Use that in the ExtMachInst. This is // slightly redundant, but it removes the need to put a condition // into all the execute functions - if (inst & (1 << 13)) { + if (emi & (1 << 13)) { emi |= (static_cast<ExtMachInst>( asi << (sizeof(MachInst) * 8))); } else { - emi |= (static_cast<ExtMachInst>(bits(inst, 12, 5)) + emi |= (static_cast<ExtMachInst>(bits(emi, 12, 5)) << (sizeof(MachInst) * 8)); } instDone = true; |