From 523e28d7614571680d21641bd0bd9b9e84570cee Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Mon, 6 Jul 2015 19:37:00 +0100 Subject: target-i386: Implement BNDCL, BNDCU, BNDCN Signed-off-by: Richard Henderson --- target-i386/mpx_helper.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'target-i386/mpx_helper.c') diff --git a/target-i386/mpx_helper.c b/target-i386/mpx_helper.c index 578b978eba..e4d5aba86b 100644 --- a/target-i386/mpx_helper.c +++ b/target-i386/mpx_helper.c @@ -51,3 +51,11 @@ void cpu_sync_bndcs_hflags(CPUX86State *env) env->hflags = hflags; env->hflags2 = hflags2; } + +void helper_bndck(CPUX86State *env, uint32_t fail) +{ + if (unlikely(fail)) { + env->bndcs_regs.sts = 1; + raise_exception_ra(env, EXCP05_BOUND, GETPC()); + } +} -- cgit v1.2.3