summaryrefslogtreecommitdiff
path: root/emulators/swarm/patches/patch-af
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/swarm/patches/patch-af')
-rw-r--r--emulators/swarm/patches/patch-af41
1 files changed, 41 insertions, 0 deletions
diff --git a/emulators/swarm/patches/patch-af b/emulators/swarm/patches/patch-af
new file mode 100644
index 00000000000..b4ab3a0b87a
--- /dev/null
+++ b/emulators/swarm/patches/patch-af
@@ -0,0 +1,41 @@
+$NetBSD: patch-af,v 1.1 2004/08/12 19:59:51 agc Exp $
+
+--- main.cpp 2004/08/12 18:28:49 1.1
++++ main.cpp 2004/08/12 18:29:57
+@@ -34,11 +34,13 @@
+ #endif
+ #include "cache.h"
+ #include "direct.h"
+-#include <iostream.h>
++#include <iostream>
+ #include <sys/stat.h>
+ #include "libc.h"
+ #include "syscopro.h"
+
++using namespace std;
++
+ #define FAST_CYCLE 1
+ #define SLOW_CYCLE 4
+
+@@ -491,15 +493,18 @@
+ }
+ DebuggerRepeatCount--;
+ }
+-#endif DEBUGGER
++#endif /* DEBUGGER */
+ // Do we need to do anything with the bus?
+ if (pinout.benable == 1)
+ {
+ // Quick sanity check
+ if (pinout.address >= MEMORY_SIZE)
+ {
+- cerr.form("SWARM failing: Bad address - 0x%08X\n",
+- pinout.address);
++ cerr << "SWARM failing: Bad address - 0x";
++ cerr << hex << pinout.address;
++ cerr << "\n";
++
++ cerr << dec;
+
+ pArm->DebugDump();
+