blob: a028bf0fa13de6379de42b727f724a16e4e5d25b [file] [log] [blame]
Stefan Reinauer05082732015-10-21 13:00:41 -07001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright 1999 Egbert Eich
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
Li-Ta Lo81521262004-07-08 17:18:27 +000014 */
Stefan Reinauer850e7d42015-09-28 13:12:04 -070015
16#ifndef __TESTBIOS_H__
17#define __TESTBIOS_H__
18
Stefan Reinauer850e7d42015-09-28 13:12:04 -070019#include <stdtypes.h>
Stefan Reinauer86051f92010-03-23 15:53:38 +000020#include <x86emu/x86emu.h>
Li-Ta Lo81521262004-07-08 17:18:27 +000021
22#define M _X86EMU_env
23
24#define X86_EAX M.x86.R_EAX
25#define X86_EBX M.x86.R_EBX
26#define X86_ECX M.x86.R_ECX
27#define X86_EDX M.x86.R_EDX
28#define X86_ESI M.x86.R_ESI
29#define X86_EDI M.x86.R_EDI
30#define X86_EBP M.x86.R_EBP
31#define X86_EIP M.x86.R_EIP
32#define X86_ESP M.x86.R_ESP
33#define X86_EFLAGS M.x86.R_EFLG
34
35#define X86_FLAGS M.x86.R_FLG
36#define X86_AX M.x86.R_AX
37#define X86_BX M.x86.R_BX
38#define X86_CX M.x86.R_CX
39#define X86_DX M.x86.R_DX
40#define X86_SI M.x86.R_SI
41#define X86_DI M.x86.R_DI
42#define X86_BP M.x86.R_BP
43#define X86_IP M.x86.R_IP
44#define X86_SP M.x86.R_SP
45#define X86_CS M.x86.R_CS
46#define X86_DS M.x86.R_DS
47#define X86_ES M.x86.R_ES
48#define X86_SS M.x86.R_SS
49#define X86_FS M.x86.R_FS
50#define X86_GS M.x86.R_GS
51
52#define X86_AL M.x86.R_AL
53#define X86_BL M.x86.R_BL
54#define X86_CL M.x86.R_CL
55#define X86_DL M.x86.R_DL
56
57#define X86_AH M.x86.R_AH
58#define X86_BH M.x86.R_BH
59#define X86_CH M.x86.R_CH
60#define X86_DH M.x86.R_DH
61
Li-Ta Lo81521262004-07-08 17:18:27 +000062#endif