diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2013-03-12 00:31:17 +0000 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2013-03-22 15:28:48 +0100 |
commit | 5dc68eb0e4e41462bf93cf5c67fe4045571fc7bf (patch) | |
tree | f812248a1ec119dfc6c219813a65d5aeff6fdcb8 /target-ppc/cpu.h | |
parent | 9813279664162fa50d6124fe8c5ac4871fa59c13 (diff) | |
download | qemu-5dc68eb0e4e41462bf93cf5c67fe4045571fc7bf.tar.gz qemu-5dc68eb0e4e41462bf93cf5c67fe4045571fc7bf.tar.bz2 qemu-5dc68eb0e4e41462bf93cf5c67fe4045571fc7bf.zip |
target-ppc: mmu_ctx_t should not be a global type
mmu_ctx_t is currently defined in cpu.h. However it is used for temporary
information relating to mmu translation, and is only used in mmu_helper.c
and (now) mmu-hash{32,64}.c. Furthermore it contains information which
should be specific to particular MMU types. Therefore, move its definition
to mmu_helper.c. mmu-hash{32,64}.c are converted to use new data types
private to the relevant MMUs (identical to mmu_ctx_t for now, but that will
change in future patches).
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'target-ppc/cpu.h')
-rw-r--r-- | target-ppc/cpu.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h index a3e1362b7a..e5f46b3418 100644 --- a/target-ppc/cpu.h +++ b/target-ppc/cpu.h @@ -1101,20 +1101,6 @@ do { \ env->wdt_period[3] = (d_); \ } while (0) -#if !defined(CONFIG_USER_ONLY) -/* Context used internally during MMU translations */ -typedef struct mmu_ctx_t mmu_ctx_t; -struct mmu_ctx_t { - hwaddr raddr; /* Real address */ - hwaddr eaddr; /* Effective address */ - int prot; /* Protection bits */ - hwaddr hash[2]; /* Pagetable hash values */ - target_ulong ptem; /* Virtual segment ID | API */ - int key; /* Access key */ - int nx; /* Non-execute area */ -}; -#endif - #include "cpu-qom.h" /*****************************************************************************/ |