Skip to content
Snippets Groups Projects
Commit a0b2d16a authored by Richard Henderson's avatar Richard Henderson
Browse files

target/microblaze: Reorg MicroBlazeCPUConfig to minimize holes


Sort the elements by type and size, removing a number of holes
and reducing the size of the entire struct.

Tested-by: default avatarEdgar E. Iglesias <edgar.iglesias@xilinx.com>
Reviewed-by: default avatarEdgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
parent 84bf3249
No related branches found
No related tags found
No related merge requests found
......@@ -293,13 +293,22 @@ struct CPUMBState {
/*
* Microblaze Configuration Settings
*
* Note that the structure is sorted by type and size to minimize holes.
*/
typedef struct {
bool stackprot;
char *version;
uint32_t base_vectors;
uint32_t pvr_user2;
uint8_t addr_size;
uint8_t use_fpu;
uint8_t use_hw_mul;
uint8_t pvr_user1;
uint8_t pvr;
bool stackprot;
bool use_barrel;
bool use_div;
bool use_msr_instr;
......@@ -313,10 +322,6 @@ typedef struct {
bool opcode_0_illegal;
bool div_zero_exception;
bool unaligned_exceptions;
uint8_t pvr_user1;
uint32_t pvr_user2;
char *version;
uint8_t pvr;
} MicroBlazeCPUConfig;
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment