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;
|
} pvr;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* MicroBlazeCPU:
|
* Microblaze Configuration Settings
|
||||||
* @env: #CPUMBState
|
|
||||||
*
|
|
||||||
* A MicroBlaze CPU.
|
|
||||||
*/
|
*/
|
||||||
struct MicroBlazeCPU {
|
typedef struct {
|
||||||
/*< private >*/
|
|
||||||
CPUState parent_obj;
|
|
||||||
|
|
||||||
/*< public >*/
|
|
||||||
|
|
||||||
CPUNegativeOffsetState neg;
|
|
||||||
CPUMBState env;
|
|
||||||
|
|
||||||
/* Microblaze Configuration Settings */
|
|
||||||
struct {
|
|
||||||
bool stackprot;
|
bool stackprot;
|
||||||
uint32_t base_vectors;
|
uint32_t base_vectors;
|
||||||
uint8_t addr_size;
|
uint8_t addr_size;
|
||||||
@ -330,7 +317,23 @@ struct MicroBlazeCPU {
|
|||||||
uint32_t pvr_user2;
|
uint32_t pvr_user2;
|
||||||
char *version;
|
char *version;
|
||||||
uint8_t pvr;
|
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