* [Qemu-devel] [PATCH] sparc32 remove unnecessary & 0xffffffff
@ 2007-11-15 23:13 Robert Reif
2007-11-17 9:23 ` Blue Swirl
0 siblings, 1 reply; 2+ messages in thread
From: Robert Reif @ 2007-11-15 23:13 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 58 bytes --]
Remove unnecessary masking of lower word with 0xffffffff.
[-- Attachment #2: mask.diff.txt --]
[-- Type: text/plain, Size: 1665 bytes --]
Index: target-sparc/op_helper.c
===================================================================
RCS file: /sources/qemu/qemu/target-sparc/op_helper.c,v
retrieving revision 1.52
diff -p -u -r1.52 op_helper.c
--- target-sparc/op_helper.c 11 Nov 2007 19:46:09 -0000 1.52
+++ target-sparc/op_helper.c 15 Nov 2007 23:10:36 -0000
@@ -263,7 +263,7 @@ void helper_ld_asi(int asi, int size, in
case 8:
tmp = ldq_code(T0 & ~7);
ret = tmp >> 32;
- T0 = tmp & 0xffffffff;
+ T0 = tmp;
break;
}
break;
@@ -282,7 +282,7 @@ void helper_ld_asi(int asi, int size, in
case 8:
tmp = ldq_user(T0 & ~7);
ret = tmp >> 32;
- T0 = tmp & 0xffffffff;
+ T0 = tmp;
break;
}
break;
@@ -301,7 +301,7 @@ void helper_ld_asi(int asi, int size, in
case 8:
tmp = ldq_kernel(T0 & ~7);
ret = tmp >> 32;
- T0 = tmp & 0xffffffff;
+ T0 = tmp;
break;
}
break;
@@ -325,7 +325,7 @@ void helper_ld_asi(int asi, int size, in
case 8:
tmp = ldq_phys(T0 & ~7);
ret = tmp >> 32;
- T0 = tmp & 0xffffffff;
+ T0 = tmp;
break;
}
break;
@@ -349,7 +349,7 @@ void helper_ld_asi(int asi, int size, in
tmp = ldq_phys((target_phys_addr_t)(T0 & ~7)
| ((target_phys_addr_t)(asi & 0xf) << 32));
ret = tmp >> 32;
- T0 = tmp & 0xffffffff;
+ T0 = tmp;
break;
}
break;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-11-17 9:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-15 23:13 [Qemu-devel] [PATCH] sparc32 remove unnecessary & 0xffffffff Robert Reif
2007-11-17 9:23 ` Blue Swirl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).