[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 05/19] Split cpu_mmu_index into cpu_mmu_index_da
From: |
Tristan Gingold |
Subject: |
Re: [Qemu-devel] [PATCH 05/19] Split cpu_mmu_index into cpu_mmu_index_data and cpu_mmu_index_code. |
Date: |
Tue, 21 Apr 2009 14:10:26 +0200 |
On Apr 15, 2009, at 4:30 PM, Aurelien Jarno wrote:
On Mon, Mar 30, 2009 at 04:36:20PM +0200, Tristan Gingold wrote:
This is required by alpha system emulation as PAL mode disable
instruction
mmu but not data mmu.
This might also be required for other cpus that have a split I/D
mmu enable.
[...]
+#define MMU_PAL_IDX 4
+static inline int cpu_mmu_index_data (CPUState *env)
{
- return (env->ps >> 3) & 3;
+ return env->mmu_data_index;
+}
+
+static inline int cpu_mmu_index_code (CPUState *env)
+{
+ return env->mmu_code_index;
}
From where env->mmu_data_index and env->mmu_code_index come from?
After
applying this patch, I get:
Yes, the dependancy is wrong. I will fix it.
Tristan.