2013-09-26 17:14:40 +02:00

42 lines
898 B
Plaintext

$NetBSD: patch-af,v 1.2 2005/11/03 21:51:57 rillig Exp $
--- src/main.cpp 2004/08/12 18:28:49 1.1
+++ src/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();