-
Notifications
You must be signed in to change notification settings - Fork 3
/
bp_emulation.h
35 lines (23 loc) · 1.11 KB
/
bp_emulation.h
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
extern void bp_emulate_illegal_instruction(uint64_t*, uint64_t, uint64_t);
extern uint64_t amo_swapd(uint64_t, uint64_t);
extern uint64_t amo_swapw(uint64_t, uint64_t);
extern uint64_t amo_addd(uint64_t, uint64_t);
extern uint64_t amo_addw(uint64_t, uint64_t);
extern uint64_t amo_xord(uint64_t, uint64_t);
extern uint64_t amo_xorw(uint64_t, uint64_t);
extern uint64_t amo_andd(uint64_t, uint64_t);
extern uint64_t amo_andw(uint64_t, uint64_t);
extern uint64_t amo_ord(uint64_t, uint64_t);
extern uint64_t amo_orw(uint64_t, uint64_t);
extern uint64_t amo_mind(uint64_t, uint64_t);
extern uint64_t amo_minw(uint64_t, uint64_t);
extern uint64_t amo_maxd(uint64_t, uint64_t);
extern uint64_t amo_maxw(uint64_t, uint64_t);
extern uint64_t amo_minuw(uint64_t, uint64_t);
extern uint64_t amo_minud(uint64_t, uint64_t);
extern uint64_t amo_maxuw(uint64_t, uint64_t);
extern uint64_t amo_maxud(uint64_t, uint64_t);
extern uint64_t mul_mulh(uint64_t, uint64_t);
extern uint64_t mul_mulhsu(uint64_t, uint64_t);
extern uint64_t mul_mulhu(uint64_t, uint64_t);
void bp_unhandled_trap_abort(uint64_t *regs, uint64_t mcause, uint64_t mtval);