diff options
author | David Li <li.davidm96@gmail.com> | 2016-01-14 10:35:40 -0700 |
---|---|---|
committer | David Li <li.davidm96@gmail.com> | 2016-01-14 10:35:40 -0700 |
commit | 59ae270a4fa286e72f7deef08dcd044828eefe63 (patch) | |
tree | 91b6fabdf4e477a5437cf32e5f2d6d1114007ad2 /src/register_file.rs | |
parent | 36b21d7691bb452a68d857a71c16b9f922b047a2 (diff) |
Convert ISA types to newtype structs
Diffstat (limited to 'src/register_file.rs')
-rw-r--r-- | src/register_file.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/register_file.rs b/src/register_file.rs index 6437eed..0f6f6a4 100644 --- a/src/register_file.rs +++ b/src/register_file.rs @@ -23,7 +23,7 @@ pub struct RegisterFile { impl RegisterFile { pub fn new() -> RegisterFile { RegisterFile { - registers: [0; 32], + registers: [isa::Word(0); 32], } } |