mirror of
https://github.com/n64dev/cen64.git
synced 2024-06-22 22:12:45 -04:00
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:
parent
490e896cc9
commit
bf46aa1fb3
13
vr4300/cpu.h
13
vr4300/cpu.h
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue