mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
target-i386: Implement FSGSBASE
Signed-off-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
parent
a114d25d5b
commit
07929f2ab2
4 changed files with 50 additions and 2 deletions
|
@ -470,3 +470,13 @@ target_ulong helper_pext(target_ulong src, target_ulong mask)
|
|||
#include "shift_helper_template.h"
|
||||
#undef SHIFT
|
||||
#endif
|
||||
|
||||
/* Test that BIT is enabled in CR4. If not, raise an illegal opcode
|
||||
exception. This reduces the requirements for rare CR4 bits being
|
||||
mapped into HFLAGS. */
|
||||
void helper_cr4_testbit(CPUX86State *env, uint32_t bit)
|
||||
{
|
||||
if (unlikely((env->cr[4] & bit) == 0)) {
|
||||
raise_exception_ra(env, EXCP06_ILLOP, GETPC());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue