summaryrefslogtreecommitdiff
path: root/target/xtensa
diff options
context:
space:
mode:
authorAlistair Francis <alistair.francis@xilinx.com>2017-09-15 14:56:07 -0700
committerMichael Tokarev <mjt@tls.msk.ru>2017-09-26 09:11:22 +0300
commit2c5b1d2a479273cec4c1be491745f48b0808b508 (patch)
treec24d0301e0cc5b45251b9f2e841d3e993f38490f /target/xtensa
parent77fc026cdf8c664123793a546a2e8eabb0168e3e (diff)
downloadqemu-2c5b1d2a479273cec4c1be491745f48b0808b508.zip
target/xtensa: Use the pre-defined MEMTXATTRS_UNSPECIFIED macro
Instead of using the hardcoded (MemTxAttrs){0} for no memory attributes let's use the already defined MEMTXATTRS_UNSPECIFIED macro instead. This is technically a change of behaviour as MEMTXATTRS_UNSPECIFIED sets the unspecified field to 1, but it doesn't look like anything is checking this field. Signed-off-by: Alistair Francis <alistair.francis@xilinx.com> Acked-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'target/xtensa')
-rw-r--r--target/xtensa/op_helper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/xtensa/op_helper.c b/target/xtensa/op_helper.c
index 519fbeddd6..3d990c0caa 100644
--- a/target/xtensa/op_helper.c
+++ b/target/xtensa/op_helper.c
@@ -1025,11 +1025,11 @@ void HELPER(ule_s)(CPUXtensaState *env, uint32_t br, float32 a, float32 b)
uint32_t HELPER(rer)(CPUXtensaState *env, uint32_t addr)
{
return address_space_ldl(env->address_space_er, addr,
- (MemTxAttrs){0}, NULL);
+ MEMTXATTRS_UNSPECIFIED, NULL);
}
void HELPER(wer)(CPUXtensaState *env, uint32_t data, uint32_t addr)
{
address_space_stl(env->address_space_er, addr, data,
- (MemTxAttrs){0}, NULL);
+ MEMTXATTRS_UNSPECIFIED, NULL);
}