mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
target/arm: Drop unsupported_encoding() macro
The unsupported_encoding() macro logs a LOG_UNIMP message and then generates code to raise the usual exception for an unallocated encoding. Back when we were still implementing the A64 decoder this was helpful for flagging up when guest code was using something we hadn't yet implemented. Now we completely cover the A64 instruction set it is barely used. The only remaining uses are for five instructions whose semantics are "UNDEF, unless being run under external halting debug": * HLT (when not being used for semihosting) * DCPSR1, DCPS2, DCPS3 * DRPS QEMU doesn't implement external halting debug, so for us the UNDEF is the architecturally correct behaviour (because it's not possible to execute these instructions with halting debug enabled). The LOG_UNIMP doesn't serve a useful purpose; replace these uses of unsupported_encoding() with unallocated_encoding(), and delete the macro. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20220509160443.3561604-1-peter.maydell@linaro.org
This commit is contained in:
parent
75662f36e3
commit
3d52472f81
2 changed files with 4 additions and 13 deletions
|
@ -2127,13 +2127,13 @@ static void disas_exc(DisasContext *s, uint32_t insn)
|
|||
* with our 32-bit semihosting).
|
||||
*/
|
||||
if (s->current_el == 0) {
|
||||
unsupported_encoding(s, insn);
|
||||
unallocated_encoding(s);
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
gen_exception_internal_insn(s, s->pc_curr, EXCP_SEMIHOST);
|
||||
} else {
|
||||
unsupported_encoding(s, insn);
|
||||
unallocated_encoding(s);
|
||||
}
|
||||
break;
|
||||
case 5:
|
||||
|
@ -2142,7 +2142,7 @@ static void disas_exc(DisasContext *s, uint32_t insn)
|
|||
break;
|
||||
}
|
||||
/* DCPS1, DCPS2, DCPS3 */
|
||||
unsupported_encoding(s, insn);
|
||||
unallocated_encoding(s);
|
||||
break;
|
||||
default:
|
||||
unallocated_encoding(s);
|
||||
|
@ -2307,7 +2307,7 @@ static void disas_uncond_b_reg(DisasContext *s, uint32_t insn)
|
|||
if (op3 != 0 || op4 != 0 || rn != 0x1f) {
|
||||
goto do_unallocated;
|
||||
} else {
|
||||
unsupported_encoding(s, insn);
|
||||
unallocated_encoding(s);
|
||||
}
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue