mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
target-mips: use physical address in lladdr
Currently the ll/sc instructions use the virtual address in both user and system mode. Use the physical address insteead in system mode. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
25b91e32e0
commit
e7139c440c
3 changed files with 61 additions and 28 deletions
|
|
@ -15,6 +15,15 @@ DEF_HELPER_3(lwr, tl, tl, tl, int)
|
|||
DEF_HELPER_3(swl, void, tl, tl, int)
|
||||
DEF_HELPER_3(swr, void, tl, tl, int)
|
||||
|
||||
#ifndef CONFIG_USER_ONLY
|
||||
DEF_HELPER_2(ll, tl, tl, int)
|
||||
DEF_HELPER_3(sc, tl, tl, tl, int)
|
||||
#ifdef TARGET_MIPS64
|
||||
DEF_HELPER_2(lld, tl, tl, int)
|
||||
DEF_HELPER_3(scd, tl, tl, tl, int)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
DEF_HELPER_FLAGS_1(clo, TCG_CALL_CONST | TCG_CALL_PURE, tl, tl)
|
||||
DEF_HELPER_FLAGS_1(clz, TCG_CALL_CONST | TCG_CALL_PURE, tl, tl)
|
||||
#ifdef TARGET_MIPS64
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue