pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/gxemul Added a patch for ISO C90 compatibility.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b0a7b7ab7661
branches:  trunk
changeset: 503816:b0a7b7ab7661
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Wed Nov 30 19:11:01 2005 +0000

description:
Added a patch for ISO C90 compatibility.

diffstat:

 emulators/gxemul/distinfo         |   3 ++-
 emulators/gxemul/patches/patch-aa |  24 ++++++++++++++++++++++++
 2 files changed, 26 insertions(+), 1 deletions(-)

diffs (39 lines):

diff -r 0952ccd7c694 -r b0a7b7ab7661 emulators/gxemul/distinfo
--- a/emulators/gxemul/distinfo Wed Nov 30 19:08:54 2005 +0000
+++ b/emulators/gxemul/distinfo Wed Nov 30 19:11:01 2005 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.9 2005/11/26 06:00:00 xtraeme Exp $
+$NetBSD: distinfo,v 1.10 2005/11/30 19:11:01 rillig Exp $
 
 SHA1 (gxemul-0.3.7.tar.gz) = 830ed2a8c462a557c80fde1d8cba7e06f7f80281
 RMD160 (gxemul-0.3.7.tar.gz) = cd327503257b9b0653af73a87519e602b91c4a1d
 Size (gxemul-0.3.7.tar.gz) = 1521309 bytes
+SHA1 (patch-aa) = f6dc0b3836e06686342f73001975a539f1aa795b
diff -r 0952ccd7c694 -r b0a7b7ab7661 emulators/gxemul/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/gxemul/patches/patch-aa Wed Nov 30 19:11:01 2005 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-aa,v 1.1 2005/11/30 19:11:01 rillig Exp $
+
+ISO C90 does not allow code intermixed with declarations.
+
+--- src/cpus/memory_ppc.c.orig Tue Nov 22 22:56:18 2005
++++ src/cpus/memory_ppc.c      Wed Nov 30 20:08:16 2005
+@@ -57,11 +57,13 @@ int ppc_bat(struct cpu *cpu, uint64_t va
+ 
+       /*  4 instruction BATs, 4 data BATs...  */
+       for (i=0; i<8; i++) {
++              uint32_t upper, lower, phys, ebs, mask;
++
+               regnr = SPR_IBAT0U + i * 2;
+-              uint32_t upper = cpu->cd.ppc.spr[regnr];
+-              uint32_t lower = cpu->cd.ppc.spr[regnr + 1];
+-              uint32_t phys = lower & BAT_RPN, ebs = upper & BAT_EPI;
+-              uint32_t mask = ((upper & BAT_BL) << 15) | 0x1ffff;
++              upper = cpu->cd.ppc.spr[regnr];
++              lower = cpu->cd.ppc.spr[regnr + 1];
++              phys = lower & BAT_RPN, ebs = upper & BAT_EPI;
++              mask = ((upper & BAT_BL) << 15) | 0x1ffff;
+ 
+               /*  Instruction BAT, but not instruction lookup? Then skip.  */
+               if (i < 4 && !(flags & FLAG_INSTR))



Home | Main Index | Thread Index | Old Index