mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
Disable phsyical memory handling in userspace emulation.
Code to handle physical memory access is not meaningful in usrmode emulation, so disable it. Signed-off-by: Paul Brook <paul@codesourcery.com>
This commit is contained in:
parent
20cb400d41
commit
b3755a915e
5 changed files with 21 additions and 9 deletions
|
@ -274,10 +274,6 @@ static inline void tb_add_jump(TranslationBlock *tb, int n,
|
|||
|
||||
TranslationBlock *tb_find_pc(unsigned long pc_ptr);
|
||||
|
||||
extern CPUWriteMemoryFunc *io_mem_write[IO_MEM_NB_ENTRIES][4];
|
||||
extern CPUReadMemoryFunc *io_mem_read[IO_MEM_NB_ENTRIES][4];
|
||||
extern void *io_mem_opaque[IO_MEM_NB_ENTRIES];
|
||||
|
||||
#include "qemu-lock.h"
|
||||
|
||||
extern spinlock_t tb_lock;
|
||||
|
@ -286,6 +282,10 @@ extern int tb_invalidated_flag;
|
|||
|
||||
#if !defined(CONFIG_USER_ONLY)
|
||||
|
||||
extern CPUWriteMemoryFunc *io_mem_write[IO_MEM_NB_ENTRIES][4];
|
||||
extern CPUReadMemoryFunc *io_mem_read[IO_MEM_NB_ENTRIES][4];
|
||||
extern void *io_mem_opaque[IO_MEM_NB_ENTRIES];
|
||||
|
||||
void tlb_fill(target_ulong addr, int is_write, int mmu_idx,
|
||||
void *retaddr);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue