blob: 487b2b10273e410594262478e9d65a03cffc67db [file] [log] [blame]
Patrick Georgi7333a112020-05-08 20:48:04 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Stefan Reinauer850e7d42015-09-28 13:12:04 -07002
3#ifndef __TESTBIOS_H__
4#define __TESTBIOS_H__
5
Stefan Reinauer850e7d42015-09-28 13:12:04 -07006#include <stdtypes.h>
Stefan Reinauer86051f92010-03-23 15:53:38 +00007#include <x86emu/x86emu.h>
Li-Ta Lo81521262004-07-08 17:18:27 +00008
9#define M _X86EMU_env
10
11#define X86_EAX M.x86.R_EAX
12#define X86_EBX M.x86.R_EBX
13#define X86_ECX M.x86.R_ECX
14#define X86_EDX M.x86.R_EDX
15#define X86_ESI M.x86.R_ESI
16#define X86_EDI M.x86.R_EDI
17#define X86_EBP M.x86.R_EBP
18#define X86_EIP M.x86.R_EIP
19#define X86_ESP M.x86.R_ESP
20#define X86_EFLAGS M.x86.R_EFLG
21
22#define X86_FLAGS M.x86.R_FLG
23#define X86_AX M.x86.R_AX
24#define X86_BX M.x86.R_BX
25#define X86_CX M.x86.R_CX
26#define X86_DX M.x86.R_DX
27#define X86_SI M.x86.R_SI
28#define X86_DI M.x86.R_DI
29#define X86_BP M.x86.R_BP
30#define X86_IP M.x86.R_IP
31#define X86_SP M.x86.R_SP
32#define X86_CS M.x86.R_CS
33#define X86_DS M.x86.R_DS
34#define X86_ES M.x86.R_ES
35#define X86_SS M.x86.R_SS
36#define X86_FS M.x86.R_FS
37#define X86_GS M.x86.R_GS
38
39#define X86_AL M.x86.R_AL
40#define X86_BL M.x86.R_BL
41#define X86_CL M.x86.R_CL
42#define X86_DL M.x86.R_DL
43
44#define X86_AH M.x86.R_AH
45#define X86_BH M.x86.R_BH
46#define X86_CH M.x86.R_CH
47#define X86_DH M.x86.R_DH
48
Li-Ta Lo81521262004-07-08 17:18:27 +000049#endif