mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
convert eflags manipulation insns to TCG
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4515 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
3bd7da9e18
commit
bd7a7b33df
5 changed files with 46 additions and 148 deletions
|
@ -108,6 +108,20 @@ void helper_unlock(void)
|
|||
spin_unlock(&global_cpu_lock);
|
||||
}
|
||||
|
||||
void helper_write_eflags(target_ulong t0, uint32_t update_mask)
|
||||
{
|
||||
load_eflags(t0, update_mask);
|
||||
}
|
||||
|
||||
target_ulong helper_read_eflags(void)
|
||||
{
|
||||
uint32_t eflags;
|
||||
eflags = cc_table[CC_OP].compute_all();
|
||||
eflags |= (DF & DF_MASK);
|
||||
eflags |= env->eflags & ~(VM_MASK | RF_MASK);
|
||||
return eflags;
|
||||
}
|
||||
|
||||
/* return non zero if error */
|
||||
static inline int load_segment(uint32_t *e1_ptr, uint32_t *e2_ptr,
|
||||
int selector)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue