diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2018-07-09 14:51:34 +0100 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2018-07-09 14:51:34 +0100 |
| commit | 2f95a3b09aebdcb5c9152a7ac434a5d57441fe82 (patch) | |
| tree | eb037dc0c3980d9eaf67a67e23cb3771f865bb0d | |
| parent | 1a9b30646edd8d10caaa9727611750bf57d08c74 (diff) | |
| download | focaccia-qemu-2f95a3b09aebdcb5c9152a7ac434a5d57441fe82.tar.gz focaccia-qemu-2f95a3b09aebdcb5c9152a7ac434a5d57441fe82.zip | |
target/arm: Suppress Coverity warning for PRF
These instructions must perform the sve_access_check, but since they are implemented as NOPs there is no generated code to elide when the access check fails. Fixes: Coverity issues 1393780 & 1393779. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
| -rw-r--r-- | target/arm/translate-sve.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index c080345b9c..d41f1155f9 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c @@ -5164,7 +5164,7 @@ static bool trans_ST1_zpiz(DisasContext *s, arg_ST1_zpiz *a, uint32_t insn) static bool trans_PRF(DisasContext *s, arg_PRF *a, uint32_t insn) { /* Prefetch is a nop within QEMU. */ - sve_access_check(s); + (void)sve_access_check(s); return true; } @@ -5174,7 +5174,7 @@ static bool trans_PRF_rr(DisasContext *s, arg_PRF_rr *a, uint32_t insn) return false; } /* Prefetch is a nop within QEMU. */ - sve_access_check(s); + (void)sve_access_check(s); return true; } |