2022-11-19 09:49:14 -05:00
|
|
|
#define BLOCK_SIZE 0x4000
|
|
|
|
|
#define BLOCK_MASK 0x3fff
|
|
|
|
|
#define BLOCK_START 0
|
2020-06-13 10:53:11 +02:00
|
|
|
|
2022-11-19 09:49:14 -05:00
|
|
|
#define HASH_SIZE 0x20000
|
|
|
|
|
#define HASH_MASK 0x1ffff
|
2020-06-13 10:53:11 +02:00
|
|
|
|
2022-11-19 09:49:14 -05:00
|
|
|
#define HASH(l) ((l) &0x1ffff)
|
2020-06-13 10:53:11 +02:00
|
|
|
|
|
|
|
|
#define BLOCK_EXIT_OFFSET 0x7e0
|
2022-10-27 04:10:16 +02:00
|
|
|
#ifdef OLD_GPF
|
2022-11-19 09:49:14 -05:00
|
|
|
# define BLOCK_GPF_OFFSET (BLOCK_EXIT_OFFSET - 20)
|
2020-07-16 01:39:55 +02:00
|
|
|
#else
|
2022-11-19 09:49:14 -05:00
|
|
|
# define BLOCK_GPF_OFFSET (BLOCK_EXIT_OFFSET - 12)
|
2020-07-16 01:39:55 +02:00
|
|
|
#endif
|
2020-06-13 10:53:11 +02:00
|
|
|
|
|
|
|
|
#define BLOCK_MAX 1620
|
|
|
|
|
|
2022-11-19 09:49:14 -05:00
|
|
|
enum {
|
|
|
|
|
OP_RET = 0xc3
|
2020-06-13 10:53:11 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#define NR_HOST_REGS 4
|
|
|
|
|
extern int host_reg_mapping[NR_HOST_REGS];
|
|
|
|
|
#define NR_HOST_XMM_REGS 8
|
|
|
|
|
extern int host_reg_xmm_mapping[NR_HOST_XMM_REGS];
|