]> Git Repo - qemu.git/commitdiff
target/xtensa: Use the pre-defined MEMTXATTRS_UNSPECIFIED macro
authorAlistair Francis <[email protected]>
Fri, 15 Sep 2017 21:56:07 +0000 (14:56 -0700)
committerMichael Tokarev <[email protected]>
Tue, 26 Sep 2017 06:11:22 +0000 (09:11 +0300)
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 <[email protected]>
Acked-by: Max Filippov <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
target/xtensa/op_helper.c

index 519fbeddd616dfe6189a0b60874cd28457fb861b..3d990c0caa44f722c509953a777883a46ec6b489 100644 (file)
@@ -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);
 }
This page took 0.028766 seconds and 4 git commands to generate.