Re: [Qemu-devel] MMU Modes

2012-01-07 Thread Xin Tong
I am investigating how LW is emulated from target-mips on x86 host. However, i can not find where the OFFSET is passed in. case OPC_LW: save_cpu_state(ctx, 0); op_ld_lw(t0, t0, ctx); gen_store_gpr(t0, rt); opn = "lw"; break; || || \|

Re: [Qemu-devel] MMU Modes

2012-01-06 Thread Peter Maydell
On 6 January 2012 12:45, Xin Tong wrote: > In qemu soft TLB, there is a MMU modes. what is it and what does it do > ? I see target-mips, NB_MMU_MODES is defined to be 3, unfortunately, > there is no comments on what each one of them means in the code. This distinguishes TLB entries for kernel mod

[Qemu-devel] MMU Modes

2012-01-06 Thread Xin Tong
In qemu soft TLB, there is a MMU modes. what is it and what does it do ? I see target-mips, NB_MMU_MODES is defined to be 3, unfortunately, there is no comments on what each one of them means in the code. Thanks