mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-04-23 21:39:10 -04:00
added CAPS
This commit is contained in:
parent
a523afbebe
commit
7a61b67170
3 changed files with 9 additions and 0 deletions
|
@ -232,6 +232,9 @@ public:
|
|||
case VX_CAPS_ISA_FLAGS:
|
||||
_value = isa_caps_;
|
||||
break;
|
||||
case VX_CAPS_NUM_MEM_BANKS:
|
||||
_value = MEMORY_BANKS;
|
||||
break;
|
||||
default:
|
||||
fprintf(stderr, "[VXDRV] Error: invalid caps id: %d\n", caps_id);
|
||||
std::abort();
|
||||
|
|
|
@ -77,6 +77,9 @@ public:
|
|||
case VX_CAPS_ISA_FLAGS:
|
||||
_value = ((uint64_t(MISA_EXT))<<32) | ((log2floor(XLEN)-4) << 30) | MISA_STD;
|
||||
break;
|
||||
case VX_CAPS_NUM_MEM_BANKS:
|
||||
_value = MEMORY_BANKS;
|
||||
break;
|
||||
default:
|
||||
std::cout << "invalid caps id: " << caps_id << std::endl;
|
||||
std::abort();
|
||||
|
|
|
@ -404,6 +404,9 @@ public:
|
|||
case VX_CAPS_ISA_FLAGS:
|
||||
_value = isa_caps_;
|
||||
break;
|
||||
case VX_CAPS_NUM_MEM_BANKS:
|
||||
_value = MEMORY_BANKS;
|
||||
break;
|
||||
default:
|
||||
fprintf(stderr, "[VXDRV] Error: invalid caps id: %d\n", caps_id);
|
||||
std::abort();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue