aboutsummaryrefslogtreecommitdiff
path: root/libpcsxcore/new_dynarec/linkage_offsets.h
blob: f7e1911a3cc7641018ca37d9cd5ffae2fecddf8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#define LO_next_interupt	64
#define LO_cycle_count		(LO_next_interupt + 4)
#define LO_last_count		(LO_cycle_count + 4)
#define LO_pending_exception	(LO_last_count + 4)
#define LO_stop			(LO_pending_exception + 4)
#define LO_invc_ptr		(LO_stop + 4)
#define LO_address		(LO_invc_ptr + 4)
#define LO_psxRegs		(LO_address + 4)
#define LO_reg			(LO_psxRegs)
#define LO_lo			(LO_reg + 128)
#define LO_hi			(LO_lo + 4)
#define LO_reg_cop0		(LO_hi + 4)
#define LO_reg_cop2d		(LO_reg_cop0 + 128)
#define LO_reg_cop2c		(LO_reg_cop2d + 128)
#define LO_PC			(LO_reg_cop2c + 128)
#define LO_pcaddr		(LO_PC)
#define LO_code			(LO_PC + 4)
#define LO_cycle		(LO_code + 4)
#define LO_interrupt		(LO_cycle + 4)
#define LO_intCycle		(LO_interrupt + 4)
#define LO_psxRegs_end		(LO_intCycle + 256)
#define LO_rcnts		(LO_psxRegs_end)
#define LO_rcnts_end		(LO_rcnts + 7*4*4)
#define LO_mem_rtab		(LO_rcnts_end)
#define LO_mem_wtab		(LO_mem_rtab + 4)
#define LO_psxH_ptr		(LO_mem_wtab + 4)
#define LO_zeromem_ptr		(LO_psxH_ptr + 4)
#define LO_inv_code_start	(LO_zeromem_ptr + 4)
#define LO_inv_code_end		(LO_inv_code_start + 4)
#define LO_branch_target	(LO_inv_code_end + 4)
#define LO_scratch_buf_ptr	(LO_branch_target + 4)
#define LO_align0		(LO_scratch_buf_ptr + 4)
#define LO_mini_ht		(LO_align0 + 12)
#define LO_restore_candidate	(LO_mini_ht + 256)
#define LO_dynarec_local_size	(LO_restore_candidate + 512)

#define LO_FCR0			(LO_align0)
#define LO_FCR31		(LO_align0)

#define LO_cop2_to_scratch_buf	(LO_scratch_buf_ptr - LO_reg_cop2d)