VirtualBox

source: vbox/trunk/src/recompiler/softmmu_exec.h@ 8722

Last change on this file since 8722 was 2422, checked in by vboxsync, 18 years ago

Removed the old recompiler code.

File size: 1.3 KB
Line 
1/* Common softmmu definitions and inline routines. */
2
3#define ldul_user ldl_user
4#define ldul_kernel ldl_kernel
5
6#define ACCESS_TYPE 0
7#define MEMSUFFIX _kernel
8#define DATA_SIZE 1
9#include "softmmu_header.h"
10
11#define DATA_SIZE 2
12#include "softmmu_header.h"
13
14#define DATA_SIZE 4
15#include "softmmu_header.h"
16
17#define DATA_SIZE 8
18#include "softmmu_header.h"
19#undef ACCESS_TYPE
20#undef MEMSUFFIX
21
22#define ACCESS_TYPE 1
23#define MEMSUFFIX _user
24#define DATA_SIZE 1
25#include "softmmu_header.h"
26
27#define DATA_SIZE 2
28#include "softmmu_header.h"
29
30#define DATA_SIZE 4
31#include "softmmu_header.h"
32
33#define DATA_SIZE 8
34#include "softmmu_header.h"
35#undef ACCESS_TYPE
36#undef MEMSUFFIX
37
38/* these access are slower, they must be as rare as possible */
39#define ACCESS_TYPE 2
40#define MEMSUFFIX _data
41#define DATA_SIZE 1
42#include "softmmu_header.h"
43
44#define DATA_SIZE 2
45#include "softmmu_header.h"
46
47#define DATA_SIZE 4
48#include "softmmu_header.h"
49
50#define DATA_SIZE 8
51#include "softmmu_header.h"
52#undef ACCESS_TYPE
53#undef MEMSUFFIX
54
55#define ldub(p) ldub_data(p)
56#define ldsb(p) ldsb_data(p)
57#define lduw(p) lduw_data(p)
58#define ldsw(p) ldsw_data(p)
59#define ldl(p) ldl_data(p)
60#define ldq(p) ldq_data(p)
61
62#define stb(p, v) stb_data(p, v)
63#define stw(p, v) stw_data(p, v)
64#define stl(p, v) stl_data(p, v)
65#define stq(p, v) stq_data(p, v)
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette