target/microblaze: Split out MicroBlazeCPUConfig
This struct was previously unnamed, and defined in MicroBlazeCPU. Pull it out to its own typedef so that we can reuse it. Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
2a7567a2f3
commit
84bf3249a3
@ -291,23 +291,10 @@ struct CPUMBState {
|
||||
} pvr;
|
||||
};
|
||||
|
||||
/**
|
||||
* MicroBlazeCPU:
|
||||
* @env: #CPUMBState
|
||||
*
|
||||
* A MicroBlaze CPU.
|
||||
/*
|
||||
* Microblaze Configuration Settings
|
||||
*/
|
||||
struct MicroBlazeCPU {
|
||||
/*< private >*/
|
||||
CPUState parent_obj;
|
||||
|
||||
/*< public >*/
|
||||
|
||||
CPUNegativeOffsetState neg;
|
||||
CPUMBState env;
|
||||
|
||||
/* Microblaze Configuration Settings */
|
||||
struct {
|
||||
typedef struct {
|
||||
bool stackprot;
|
||||
uint32_t base_vectors;
|
||||
uint8_t addr_size;
|
||||
@ -330,7 +317,23 @@ struct MicroBlazeCPU {
|
||||
uint32_t pvr_user2;
|
||||
char *version;
|
||||
uint8_t pvr;
|
||||
} cfg;
|
||||
} MicroBlazeCPUConfig;
|
||||
|
||||
/**
|
||||
* MicroBlazeCPU:
|
||||
* @env: #CPUMBState
|
||||
*
|
||||
* A MicroBlaze CPU.
|
||||
*/
|
||||
struct MicroBlazeCPU {
|
||||
/*< private >*/
|
||||
CPUState parent_obj;
|
||||
|
||||
/*< public >*/
|
||||
|
||||
CPUNegativeOffsetState neg;
|
||||
CPUMBState env;
|
||||
MicroBlazeCPUConfig cfg;
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user