Added initial register content needed by runtime.

git-svn-id: http://www.cdkersey.com/harp/harptool@10 0246edb2-e076-4747-b392-db732a341fa2
This commit is contained in:
chad
2011-07-23 12:22:43 +00:00
parent 269fe72f2d
commit e3ab8a71ee
3 changed files with 6 additions and 6 deletions

View File

@@ -15,7 +15,7 @@
namespace Harp {
class Core {
public:
Core(const ArchDef &a, Decoder &d, MemoryUnit &mem);
Core(const ArchDef &a, Decoder &d, MemoryUnit &mem, Word id=0);
void step();
bool interrupt(Word r0);
bool running() const { return activeThreads; }
@@ -25,7 +25,7 @@ namespace Harp {
Decoder &iDec;
MemoryUnit &mem;
Word pc, interruptEntry, shadowPc;
Word pc, interruptEntry, shadowPc, id;
Size activeThreads, shadowActiveThreads;
std::vector<std::vector<Word> > reg;
std::vector<std::vector<bool> > pred;