Added the rest of the framework for instrumenting the emulator.

git-svn-id: http://www.cdkersey.com/harp/harptool@32 0246edb2-e076-4747-b392-db732a341fa2
This commit is contained in:
chad
2011-10-19 02:13:13 +00:00
parent 85b40db3d1
commit 15774083d0
4 changed files with 81 additions and 61 deletions

View File

@@ -90,7 +90,9 @@ void Core::step() {
bool Core::interrupt(Word r0) {
if (!interruptEnable) return false;
//cout << "Interrupt: " << r0 << '\n';
#ifdef EMU_INSTRUMENTATION
#error TODO: instrument Harp::Core::interrupt()
#endif
shadowActiveThreads = activeThreads;
shadowInterruptEnable = interruptEnable; /* For traps. */