mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
target-microblaze: Preserve the pvr registers during reset
Move the Microblaze PVR registers to the end of the CPUMBState and preserve them during reset. This is similar to what the QEMU ARM model does with some of it's registers. This allows the Microblaze PVR registers to only be set once at realise instead of constantly at reset. Signed-off-by: Alistair Francis <alistair.francis@xilinx.com> Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
This commit is contained in:
parent
53432dc9ea
commit
8bac22423e
2 changed files with 28 additions and 22 deletions
|
@ -260,16 +260,18 @@ struct CPUMBState {
|
|||
#define IFLAGS_TB_MASK (D_FLAG | IMM_FLAG | DRTI_FLAG | DRTE_FLAG | DRTB_FLAG)
|
||||
uint32_t iflags;
|
||||
|
||||
struct {
|
||||
uint32_t regs[16];
|
||||
} pvr;
|
||||
|
||||
#if !defined(CONFIG_USER_ONLY)
|
||||
/* Unified MMU. */
|
||||
struct microblaze_mmu mmu;
|
||||
#endif
|
||||
|
||||
CPU_COMMON
|
||||
|
||||
/* These fields are preserved on reset. */
|
||||
|
||||
struct {
|
||||
uint32_t regs[16];
|
||||
} pvr;
|
||||
};
|
||||
|
||||
#include "cpu-qom.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue