target: e2k: fix instructions with speculative mode
This commit is contained in:
parent
bc18b23fda
commit
b8a79c9c2b
|
@ -862,7 +862,8 @@ static Result gen_alc(DisasContext *dc, CPUE2KState *env, int chan)
|
||||||
{
|
{
|
||||||
const struct unpacked_instr *instr = &dc->instr;
|
const struct unpacked_instr *instr = &dc->instr;
|
||||||
unsigned int als = instr->als[chan];
|
unsigned int als = instr->als[chan];
|
||||||
int opc = als >> 24;
|
int opc = (als >> 24) & 0x7f;
|
||||||
|
int sm = als >> 31;
|
||||||
unsigned int dst = als & 0xff;
|
unsigned int dst = als & 0xff;
|
||||||
Result res = { 0 };
|
Result res = { 0 };
|
||||||
|
|
||||||
|
@ -978,7 +979,7 @@ static Result gen_alc(DisasContext *dc, CPUE2KState *env, int chan)
|
||||||
gen_exception(dc, 1);
|
gen_exception(dc, 1);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
qemu_log_mask(LOG_UNIMP, "gen_alc: undefined instruction 0x%x\n", opc);
|
qemu_log_mask(LOG_UNIMP, "gen_alc: undefined instruction 0x%x %s\n", opc, sm ? "(speculative)" : "");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue