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.

Backports commit 2f95a3b09aebdcb5c9152a7ac434a5d57441fe82 from qemu
This commit is contained in:
Richard Henderson 2018-07-09 16:40:42 -04:00 committed by Lioncash
parent 2fbf4d24c9
commit 0fb2742a4a
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7

View File

@ -5345,7 +5345,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;
}
@ -5355,7 +5355,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;
}