diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2021-04-19 13:22:31 -0700 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2021-04-30 11:16:50 +0100 |
commit | 3902bfc6f06144016b8b25f5b6fb2211e85406fc (patch) | |
tree | e450ea5f49be678d07ab3595763e8a1ea72a9dec /target/arm/translate.h | |
parent | a729a46b05ab09e473cd757ee7a62373a175fa62 (diff) | |
download | qemu-3902bfc6f06144016b8b25f5b6fb2211e85406fc.zip qemu-3902bfc6f06144016b8b25f5b6fb2211e85406fc.tar.gz qemu-3902bfc6f06144016b8b25f5b6fb2211e85406fc.tar.bz2 |
target/arm: Introduce CPUARMTBFlags
In preparation for splitting tb->flags across multiple
fields, introduce a structure to hold the value(s).
So far this only migrates the one uint32_t and fixes
all of the places that require adjustment to match.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210419202257.161730-6-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/arm/translate.h')
-rw-r--r-- | target/arm/translate.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/target/arm/translate.h b/target/arm/translate.h index 423b0e0..f30287e 100644 --- a/target/arm/translate.h +++ b/target/arm/translate.h @@ -394,6 +394,17 @@ typedef void CryptoThreeOpIntFn(TCGv_ptr, TCGv_ptr, TCGv_i32); typedef void CryptoThreeOpFn(TCGv_ptr, TCGv_ptr, TCGv_ptr); typedef void AtomicThreeOpFn(TCGv_i64, TCGv_i64, TCGv_i64, TCGArg, MemOp); +/** + * arm_tbflags_from_tb: + * @tb: the TranslationBlock + * + * Extract the flag values from @tb. + */ +static inline CPUARMTBFlags arm_tbflags_from_tb(const TranslationBlock *tb) +{ + return (CPUARMTBFlags){ tb->flags }; +} + /* * Enum for argument to fpstatus_ptr(). */ |