mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
exec: Change tlb_fill() argument to CPUState
Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
f0c3c505a8
commit
d5a11fefef
18 changed files with 91 additions and 61 deletions
|
|
@ -36,15 +36,17 @@
|
|||
#define SHIFT 3
|
||||
#include "exec/softmmu_template.h"
|
||||
|
||||
void tlb_fill(CPUOpenRISCState *env, target_ulong addr, int is_write,
|
||||
void tlb_fill(CPUState *cs, target_ulong addr, int is_write,
|
||||
int mmu_idx, uintptr_t retaddr)
|
||||
{
|
||||
OpenRISCCPU *cpu = openrisc_env_get_cpu(env);
|
||||
int ret;
|
||||
|
||||
ret = openrisc_cpu_handle_mmu_fault(CPU(cpu), addr, is_write, mmu_idx);
|
||||
ret = openrisc_cpu_handle_mmu_fault(cs, addr, is_write, mmu_idx);
|
||||
|
||||
if (ret) {
|
||||
OpenRISCCPU *cpu = OPENRISC_CPU(cs);
|
||||
CPUOpenRISCState *env = &cpu->env;
|
||||
|
||||
if (retaddr) {
|
||||
/* now we have a real cpu fault. */
|
||||
cpu_restore_state(env, retaddr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue