Reorganize structures.

If we place larger, less commonly used structures after our
frequently accessed state variables, the average size of x86
instructions will be reduced due to the smaller offsets off
the base pointer.
This commit is contained in:
Tyler Stachecki 2014-07-31 13:43:16 -04:00
parent 490e896cc9
commit bf46aa1fb3

View file

@ -89,18 +89,19 @@ extern const char *mi_register_mnemonics[NUM_MI_REGISTERS];
#endif
struct vr4300 {
uint64_t regs[NUM_VR4300_REGISTERS];
uint32_t mi_regs[NUM_MI_REGISTERS];
struct vr4300_dcache dcache;
struct vr4300_icache icache;
struct vr4300_pipeline pipeline;
struct vr4300_cp1 cp1;
struct bus_controller *bus;
unsigned long long cycles;
unsigned signals;
uint64_t regs[NUM_VR4300_REGISTERS];
uint32_t mi_regs[NUM_MI_REGISTERS];
struct vr4300_dcache dcache;
struct vr4300_icache icache;
};
void vr4300_cycle(struct vr4300 *vr4300);