mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-02 05:01:06 +00:00
target/mips: Support variable page size
Traditionally, MIPS use 4KB page size, but Loongson prefer 16KB page size in system emulator. So, let's define TARGET_PAGE_BITS_VARY and TARGET_PAGE_BITS_MIN to support variable page size. Backports commit ee3863b9d414f0b4a59a88f2a79b496a99d4f6dd from qemu
This commit is contained in:
parent
1c6b0339e6
commit
504946fb79
|
@ -23,7 +23,12 @@
|
|||
# define TARGET_VIRT_ADDR_SPACE_BITS 32
|
||||
#endif
|
||||
#endif
|
||||
#ifdef CONFIG_USER_ONLY
|
||||
#define TARGET_PAGE_BITS 12
|
||||
#else
|
||||
#define TARGET_PAGE_BITS_VARY
|
||||
#define TARGET_PAGE_BITS_MIN 12
|
||||
#endif
|
||||
#define NB_MMU_MODES 4
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue