diff --git a/src/arch/sparc/decoder.hh b/src/arch/sparc/decoder.hh index 8124a69634..999d0ed06e 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( asi << (sizeof(MachInst) * 8))); } else { - emi |= (static_cast(bits(inst, 12, 5)) + emi |= (static_cast(bits(emi, 12, 5)) << (sizeof(MachInst) * 8)); } instDone = true;