make unicorn use the physical addresses

This allows to emulate code witch fully uses the MMU. This is necesary
to allow full system emulation.
This commit is contained in:
Takacs, Philipp
2022-09-28 18:10:49 +02:00
parent f2a236126f
commit 4b327baaf7
2 changed files with 280 additions and 224 deletions

View File

@@ -77,9 +77,9 @@ typedef uint64_t target_ulong;
#define CPU_VTLB_SIZE 8
#if HOST_LONG_BITS == 32 && TARGET_LONG_BITS == 32
#define CPU_TLB_ENTRY_BITS 4
#else
#define CPU_TLB_ENTRY_BITS 5
#else
#define CPU_TLB_ENTRY_BITS 6
#endif
#define CPU_TLB_DYN_MIN_BITS 6
@@ -112,6 +112,7 @@ typedef struct CPUTLBEntry {
target_ulong addr_read;
target_ulong addr_write;
target_ulong addr_code;
target_ulong paddr;
/* Addend to virtual address to get host address. IO accesses
use the corresponding iotlb value. */
uintptr_t addend;