mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
target-microblaze: Don't overuse CPUState
Scripted conversion: sed -i "s/CPUState/CPUMBState/g" target-microblaze/*.[hc] sed -i "s/#define CPUMBState/#define CPUState/" target-microblaze/cpu.h Signed-off-by: Andreas Färber <afaerber@suse.de> Acked-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
2b3e3cfe84
commit
68cee38a9c
6 changed files with 57 additions and 57 deletions
|
@ -31,7 +31,7 @@ static unsigned int tlb_decode_size(unsigned int f)
|
|||
return sizes[f];
|
||||
}
|
||||
|
||||
static void mmu_flush_idx(CPUState *env, unsigned int idx)
|
||||
static void mmu_flush_idx(CPUMBState *env, unsigned int idx)
|
||||
{
|
||||
struct microblaze_mmu *mmu = &env->mmu;
|
||||
unsigned int tlb_size;
|
||||
|
@ -51,7 +51,7 @@ static void mmu_flush_idx(CPUState *env, unsigned int idx)
|
|||
}
|
||||
}
|
||||
|
||||
static void mmu_change_pid(CPUState *env, unsigned int newpid)
|
||||
static void mmu_change_pid(CPUMBState *env, unsigned int newpid)
|
||||
{
|
||||
struct microblaze_mmu *mmu = &env->mmu;
|
||||
unsigned int i;
|
||||
|
@ -175,7 +175,7 @@ done:
|
|||
}
|
||||
|
||||
/* Writes/reads to the MMU's special regs end up here. */
|
||||
uint32_t mmu_read(CPUState *env, uint32_t rn)
|
||||
uint32_t mmu_read(CPUMBState *env, uint32_t rn)
|
||||
{
|
||||
unsigned int i;
|
||||
uint32_t r;
|
||||
|
@ -215,7 +215,7 @@ uint32_t mmu_read(CPUState *env, uint32_t rn)
|
|||
return r;
|
||||
}
|
||||
|
||||
void mmu_write(CPUState *env, uint32_t rn, uint32_t v)
|
||||
void mmu_write(CPUMBState *env, uint32_t rn, uint32_t v)
|
||||
{
|
||||
unsigned int i;
|
||||
D(qemu_log("%s rn=%d=%x old=%x\n", __func__, rn, v, env->mmu.regs[rn]));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue