|
36 | 36 | __r; \
|
37 | 37 | })
|
38 | 38 |
|
39 |
| -#define get_user_code_u16(x, gaddr, env) \ |
40 |
| - ({ abi_long __r = get_user_u16((x), (gaddr)); \ |
41 |
| - if (!__r && bswap_code(arm_sctlr_b(env))) { \ |
42 |
| - (x) = bswap16(x); \ |
43 |
| - } \ |
44 |
| - __r; \ |
45 |
| - }) |
46 |
| - |
47 |
| -#define get_user_data_u32(x, gaddr, env) \ |
48 |
| - ({ abi_long __r = get_user_u32((x), (gaddr)); \ |
49 |
| - if (!__r && arm_cpu_bswap_data(env)) { \ |
50 |
| - (x) = bswap32(x); \ |
51 |
| - } \ |
52 |
| - __r; \ |
53 |
| - }) |
54 |
| - |
55 |
| -#define get_user_data_u16(x, gaddr, env) \ |
56 |
| - ({ abi_long __r = get_user_u16((x), (gaddr)); \ |
57 |
| - if (!__r && arm_cpu_bswap_data(env)) { \ |
58 |
| - (x) = bswap16(x); \ |
59 |
| - } \ |
60 |
| - __r; \ |
61 |
| - }) |
62 |
| - |
63 |
| -#define put_user_data_u32(x, gaddr, env) \ |
64 |
| - ({ typeof(x) __x = (x); \ |
65 |
| - if (arm_cpu_bswap_data(env)) { \ |
66 |
| - __x = bswap32(__x); \ |
67 |
| - } \ |
68 |
| - put_user_u32(__x, (gaddr)); \ |
69 |
| - }) |
70 |
| - |
71 |
| -#define put_user_data_u16(x, gaddr, env) \ |
72 |
| - ({ typeof(x) __x = (x); \ |
73 |
| - if (arm_cpu_bswap_data(env)) { \ |
74 |
| - __x = bswap16(__x); \ |
75 |
| - } \ |
76 |
| - put_user_u16(__x, (gaddr)); \ |
77 |
| - }) |
| 39 | +/* |
| 40 | + * Note that if we need to do data accesses here, they should do a |
| 41 | + * bswap if arm_cpu_bswap_data() returns true. |
| 42 | + */ |
78 | 43 |
|
79 | 44 | /*
|
80 | 45 | * Similar to code in accel/tcg/user-exec.c, but outside the execution loop.
|
|
0 commit comments