diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2018-01-25 11:45:28 +0000 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2018-01-25 11:45:28 +0000 |
| commit | cf96a682481bbfb1e6b53d2436c3d51563d5dff8 (patch) | |
| tree | 5b3323d15dcea16aa48fb917783baa0095e7478e | |
| parent | 1b58d58f76289212f40d71282ae3a85d6cd65fef (diff) | |
| download | focaccia-qemu-cf96a682481bbfb1e6b53d2436c3d51563d5dff8.tar.gz focaccia-qemu-cf96a682481bbfb1e6b53d2436c3d51563d5dff8.zip | |
target/arm: Mark disas_set_insn_syndrome inline
If it isn't used when translate.h is included, we'll get a compiler Werror. Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Message-id: 20180119045438.28582-2-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
| -rw-r--r-- | target/arm/translate.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/arm/translate.h b/target/arm/translate.h index cd7313ace7..3f4df91e5e 100644 --- a/target/arm/translate.h +++ b/target/arm/translate.h @@ -108,7 +108,7 @@ static inline int default_exception_el(DisasContext *s) ? 3 : MAX(1, s->current_el); } -static void disas_set_insn_syndrome(DisasContext *s, uint32_t syn) +static inline void disas_set_insn_syndrome(DisasContext *s, uint32_t syn) { /* We don't need to save all of the syndrome so we mask and shift * out unneeded bits to help the sleb128 encoder do a better job. |