Additional debugging info.

git-svn-id: http://www.cdkersey.com/harp/harptool@115 0246edb2-e076-4747-b392-db732a341fa2
This commit is contained in:
chad
2013-01-17 09:04:30 +00:00
parent 3ceabe2a61
commit 4428bcd1b7
7 changed files with 41 additions and 17 deletions

View File

@@ -20,8 +20,8 @@ namespace Harp {
template <typename T> class Reg {
public:
Reg(): cpuId(0), regNum(0) {}
Reg(Word c, Word n): cpuId(c), regNum(n) {}
Reg(): cpuId(0), regNum(0), val(0) {}
Reg(Word c, Word n): cpuId(c), regNum(n), val(0) {}
Reg &operator=(T r) { val = r; doWrite(); return *this; }
operator T() { doRead(); return val; }