mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
MIPS64 improvements, based on a patch by Aurelien Jarno.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3021 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
e04ea3dc1a
commit
996ba2ccf5
2 changed files with 5 additions and 5 deletions
|
@ -130,11 +130,11 @@ static int get_physical_address (CPUState *env, target_ulong *physical,
|
|||
|
||||
if (address <= (int32_t)0x7FFFFFFFUL) {
|
||||
/* useg */
|
||||
if (!(env->CP0_Status & (1 << CP0St_ERL) && user_mode)) {
|
||||
ret = env->map_address(env, physical, prot, address, rw, access_type);
|
||||
} else {
|
||||
if (env->CP0_Status & (1 << CP0St_ERL)) {
|
||||
*physical = address & 0xFFFFFFFF;
|
||||
*prot = PAGE_READ | PAGE_WRITE;
|
||||
} else {
|
||||
ret = env->map_address(env, physical, prot, address, rw, access_type);
|
||||
}
|
||||
#ifdef TARGET_MIPS64
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue