667ff9612b
Instead of translating the instruction to a no-op, pause the VM and display a message to the user. As a side effect, this also works for instructions where the operands are only known at runtime. Signed-off-by: Michael Walle <michael@walle.cc>
19 lines
572 B
C
19 lines
572 B
C
#include "exec/def-helper.h"
|
|
|
|
DEF_HELPER_2(raise_exception, void, env, i32)
|
|
DEF_HELPER_1(hlt, void, env)
|
|
DEF_HELPER_3(wcsr_bp, void, env, i32, i32)
|
|
DEF_HELPER_3(wcsr_wp, void, env, i32, i32)
|
|
DEF_HELPER_2(wcsr_dc, void, env, i32)
|
|
DEF_HELPER_2(wcsr_im, void, env, i32)
|
|
DEF_HELPER_2(wcsr_ip, void, env, i32)
|
|
DEF_HELPER_2(wcsr_jtx, void, env, i32)
|
|
DEF_HELPER_2(wcsr_jrx, void, env, i32)
|
|
DEF_HELPER_1(rcsr_im, i32, env)
|
|
DEF_HELPER_1(rcsr_ip, i32, env)
|
|
DEF_HELPER_1(rcsr_jtx, i32, env)
|
|
DEF_HELPER_1(rcsr_jrx, i32, env)
|
|
DEF_HELPER_1(ill, void, env)
|
|
|
|
#include "exec/def-helper.h"
|