diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2016-06-02 17:10:20 +0100 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2016-06-07 18:19:24 +0300 |
commit | e0ca2ed562d50e6aa02b15431d009fe165cff159 (patch) | |
tree | 5d0cffdabf2ae68751d4c0bf58162448482928c0 /include/exec | |
parent | 7a00217d1a4478f2b8ac63e7fcd5a31af39394ba (diff) | |
download | qemu-e0ca2ed562d50e6aa02b15431d009fe165cff159.zip qemu-e0ca2ed562d50e6aa02b15431d009fe165cff159.tar.gz qemu-e0ca2ed562d50e6aa02b15431d009fe165cff159.tar.bz2 |
thunk: Rename args and fields in host-target bitmask conversion code
The target_to_host_bitmask() and host_to_target_bitmask() functions
and the associated struct bitmask_transtbl are completely generic,
but for historical reasons the target related fields and parameters
are named 'x86' and the host related fields are named 'alpha'.
Rename them to 'target' and 'host'.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'include/exec')
-rw-r--r-- | include/exec/user/thunk.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/exec/user/thunk.h b/include/exec/user/thunk.h index 57eb358..f19ef4b 100644 --- a/include/exec/user/thunk.h +++ b/include/exec/user/thunk.h @@ -60,10 +60,10 @@ typedef struct { /* Translation table for bitmasks... */ typedef struct bitmask_transtbl { - unsigned int x86_mask; - unsigned int x86_bits; - unsigned int alpha_mask; - unsigned int alpha_bits; + unsigned int target_mask; + unsigned int target_bits; + unsigned int host_mask; + unsigned int host_bits; } bitmask_transtbl; void thunk_register_struct(int id, const char *name, const argtype *types); @@ -177,9 +177,9 @@ static inline int thunk_type_align(const argtype *type_ptr, int is_host) } } -unsigned int target_to_host_bitmask(unsigned int x86_mask, +unsigned int target_to_host_bitmask(unsigned int target_mask, const bitmask_transtbl * trans_tbl); -unsigned int host_to_target_bitmask(unsigned int alpha_mask, +unsigned int host_to_target_bitmask(unsigned int host_mask, const bitmask_transtbl * trans_tbl); void thunk_init(unsigned int max_structs); |