summaryrefslogtreecommitdiff
path: root/target-i386/mpx_helper.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2015-07-06 19:37:00 +0100
committerRichard Henderson <rth@twiddle.net>2016-02-15 14:50:00 +1100
commit523e28d7614571680d21641bd0bd9b9e84570cee (patch)
tree3960d489239e4b5be65bc3a2d9f31c1c5133942b /target-i386/mpx_helper.c
parent62b58ba58bfebdb8a1c447beaa1285cc21249d15 (diff)
downloadqemu-523e28d7614571680d21641bd0bd9b9e84570cee.tar.gz
qemu-523e28d7614571680d21641bd0bd9b9e84570cee.tar.bz2
qemu-523e28d7614571680d21641bd0bd9b9e84570cee.zip
target-i386: Implement BNDCL, BNDCU, BNDCN
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-i386/mpx_helper.c')
-rw-r--r--target-i386/mpx_helper.c8
1 files changed, 8 insertions, 0 deletions
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());
+ }
+}