pkgsrc-Changes archive

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

CVS commit: [pkgsrc-2017Q1] pkgsrc/emulators/gxemul



Module Name:    pkgsrc
Committed By:   bsiegert
Date:           Sat Jun  3 18:02:44 UTC 2017

Modified Files:
        pkgsrc/emulators/gxemul [pkgsrc-2017Q1]: Makefile distinfo
Added Files:
        pkgsrc/emulators/gxemul/patches [pkgsrc-2017Q1]:
            patch-src_devices_dev__footbridge.cc

Log Message:
Pullup ticket #5441 - requested by sevan
emulators/gxemul: bugfix

Revisions pulled up:
- emulators/gxemul/Makefile                                     1.56
- emulators/gxemul/distinfo                                     1.46
- emulators/gxemul/patches/patch-src_devices_dev__footbridge.cc 1.1

---
   Module Name:    pkgsrc
   Committed By:   christos
   Date:           Mon May 15 01:45:49 UTC 2017

   Modified Files:
           pkgsrc/emulators/gxemul: Makefile distinfo
   Added Files:
           pkgsrc/emulators/gxemul/patches:
   patch-src_devices_dev__footbridge.cc

   Log Message:
   Fix cats interrupt issue, cosmetic addition to footbridge.


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.54.6.1 pkgsrc/emulators/gxemul/Makefile
cvs rdiff -u -r1.44 -r1.44.10.1 pkgsrc/emulators/gxemul/distinfo
cvs rdiff -u -r0 -r1.1.2.2 \
    pkgsrc/emulators/gxemul/patches/patch-src_devices_dev__footbridge.cc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/emulators/gxemul/Makefile
diff -u pkgsrc/emulators/gxemul/Makefile:1.54 pkgsrc/emulators/gxemul/Makefile:1.54.6.1
--- pkgsrc/emulators/gxemul/Makefile:1.54       Tue Jul  5 16:56:57 2016
+++ pkgsrc/emulators/gxemul/Makefile    Sat Jun  3 18:02:44 2017
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.54 2016/07/05 16:56:57 maya Exp $
+# $NetBSD: Makefile,v 1.54.6.1 2017/06/03 18:02:44 bsiegert Exp $
 
 DISTNAME=      gxemul-0.6.0.1
-PKGREVISION=   1
+PKGREVISION=   3
 CATEGORIES=    emulators
 MASTER_SITES=  http://gxemul.sourceforge.net/src/
 

Index: pkgsrc/emulators/gxemul/distinfo
diff -u pkgsrc/emulators/gxemul/distinfo:1.44 pkgsrc/emulators/gxemul/distinfo:1.44.10.1
--- pkgsrc/emulators/gxemul/distinfo:1.44       Tue Mar 29 19:03:07 2016
+++ pkgsrc/emulators/gxemul/distinfo    Sat Jun  3 18:02:44 2017
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.44 2016/03/29 19:03:07 mrg Exp $
+$NetBSD: distinfo,v 1.44.10.1 2017/06/03 18:02:44 bsiegert Exp $
 
 SHA1 (gxemul-0.6.0.1.tar.gz) = 8a9b7a6c08628c2a59a6e7e9c7c449c3826b4744
 RMD160 (gxemul-0.6.0.1.tar.gz) = 6943173d4149bfe40218715b8ed2c82b5b361e50
@@ -13,6 +13,7 @@ SHA1 (patch-src_components_cpu_M88K__CPU
 SHA1 (patch-src_components_cpu_MIPS__CPUComponent.cc) = 75d8276092fcdc9f548f874e5807ae8e6a2b9eae
 SHA1 (patch-src_cpus_cpu_mips.cc) = d239116e4ce5e040a1bdf39b803ca9a05500be53
 SHA1 (patch-src_cpus_cpu_mips_instr.cc) = be40f86a103d2366d13a884d957848d4f680dc61
+SHA1 (patch-src_devices_dev__footbridge.cc) = 2dc76e65fff7e6c846d9d06b74bed76075b0c79a
 SHA1 (patch-src_include_components_CPUDyntransComponent.h) = 4fa3c327c4ce5ee9e39e7bc49ce6029b2a7da100
 SHA1 (patch-src_include_components_M88K__CPUComponent.h) = afd07ae4df33d0c0a9d3d8c15dca4ef9ee7dd916
 SHA1 (patch-src_include_components_MIPS__CPUComponent.h) = 4e49da9af0d220a1ea7c4520d8e7e53d8d84c155

Added files:

Index: pkgsrc/emulators/gxemul/patches/patch-src_devices_dev__footbridge.cc
diff -u /dev/null pkgsrc/emulators/gxemul/patches/patch-src_devices_dev__footbridge.cc:1.1.2.2
--- /dev/null   Sat Jun  3 18:02:44 2017
+++ pkgsrc/emulators/gxemul/patches/patch-src_devices_dev__footbridge.cc        Sat Jun  3 18:02:44 2017
@@ -0,0 +1,59 @@
+$NetBSD: patch-src_devices_dev__footbridge.cc,v 1.1.2.2 2017/06/03 18:02:44 bsiegert Exp $
+- fix hang interrupt issue. Always assert the irq's even if we have alread
+  asserted the global irq for the device. prevents hangs with cats.
+- add cosmetic (no/op) code for the SDRAM setup that cats does.
+
+--- src/devices/dev_footbridge.cc.orig 2014-08-17 04:45:12.000000000 -0400
++++ src/devices/dev_footbridge.cc      2017-05-14 21:30:25.392564100 -0400
+@@ -154,7 +154,7 @@
+       struct footbridge_data *d = (struct footbridge_data *) interrupt->extra;
+       d->irq_status |= interrupt->line;
+ 
+-      if ((d->irq_status & d->irq_enable) && !d->irq_asserted) {
++      if ((d->irq_status & d->irq_enable) /* && !d->irq_asserted */) {
+               d->irq_asserted = 1;
+               INTERRUPT_ASSERT(d->irq);
+       }
+@@ -455,6 +455,42 @@
+               INTERRUPT_DEASSERT(d->timer_irq[timer_nr]);
+               break;
+ 
++      case SDRAM_BA_MASK:
++              if (writeflag == MEM_READ) {
++                      fatal("[ footbridge read to sdram_ba_mask ]\n");
++                      exit(1);
++              } else {
++                      switch (idata) {
++                      case SDRAM_MASK_256KB:
++                      case SDRAM_MASK_512KB:
++                      case SDRAM_MASK_1MB:
++                      case SDRAM_MASK_2MB:
++                      case SDRAM_MASK_4MB:
++                      case SDRAM_MASK_8MB:
++                      case SDRAM_MASK_16MB:
++                      case SDRAM_MASK_32MB:
++                      case SDRAM_MASK_64MB:
++                      case SDRAM_MASK_128MB:
++                      case SDRAM_MASK_256MB:
++                              break;
++                      default:
++                              fatal("[ footbridge write to sdram_ba_mask "
++                                  "%#llx ]\n", (long long)idata);
++                              break;
++                      }
++              }
++              break;
++      case SDRAM_BA_OFFSET:
++              if (writeflag == MEM_READ) {
++                      fatal("[ footbridge read to sdram_ba_offset ]\n");
++                      exit(1);
++              } else {
++                      if (idata != 0)
++                              fatal("[ footbridge write to sdram_ba_offset "
++                                  "%#llx ]\n", (long long)idata);
++              }
++              break;
++
+       default:if (writeflag == MEM_READ) {
+                       fatal("[ footbridge: read from 0x%x ]\n",
+                           (int)relative_addr);



Home | Main Index | Thread Index | Old Index