b39030942d
For now we just copy over the previous user stubs, but really, everything that requires s->cpl == 0 should be impossible to trigger from user-mode emulation. Later on we should add a check that asserts this easily f.e.: static bool check_cpl0(DisasContext *s) { int cpl = s->cpl; #ifdef CONFIG_USER_ONLY assert(cpl == 3); #endif if (cpl != 0) { gen_exception(s, EXCP0D_GPF, s->pc_start - s->cs_base); return false; } return true; } Signed-off-by: Claudio Fontana <cfontana@suse.de> Cc: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20210322132800.7470-17-cfontana@suse.de> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
16 lines
308 B
Meson
16 lines
308 B
Meson
i386_ss.add(when: 'CONFIG_TCG', if_true: files(
|
|
'bpt_helper.c',
|
|
'cc_helper.c',
|
|
'excp_helper.c',
|
|
'fpu_helper.c',
|
|
'int_helper.c',
|
|
'mem_helper.c',
|
|
'misc_helper.c',
|
|
'mpx_helper.c',
|
|
'seg_helper.c',
|
|
'tcg-cpu.c',
|
|
'translate.c'), if_false: files('tcg-stub.c'))
|
|
|
|
subdir('sysemu')
|
|
subdir('user')
|