Skip to content

Commit 883a7ae

Browse files
committed
Changed vector emulation to use VLENB (VLEN / 8) and some merge fixes
1 parent ac18a5a commit 883a7ae

File tree

4 files changed

+8
-27
lines changed

4 files changed

+8
-27
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727

2828
- name: Cache Toolchain Directory
2929
id: cache-toolchain
30-
uses: actions/cache@v2
30+
uses: actions/cache@v4
3131
with:
3232
path: tools
3333
key: ${{ runner.os }}-toolchain-v0.1
@@ -36,7 +36,7 @@ jobs:
3636
3737
- name: Cache Third Party Directory
3838
id: cache-thirdparty
39-
uses: actions/cache@v2
39+
uses: actions/cache@v4
4040
with:
4141
path: third_party
4242
key: ${{ runner.os }}-thirdparty-v0.1
@@ -79,7 +79,7 @@ jobs:
7979
8080
- name: Cache Toolchain Directory
8181
id: cache-toolchain
82-
uses: actions/cache@v2
82+
uses: actions/cache@v4
8383
with:
8484
path: tools
8585
key: ${{ runner.os }}-toolchain-v0.1
@@ -88,7 +88,7 @@ jobs:
8888
8989
- name: Cache Third Party Directory
9090
id: cache-thirdparty
91-
uses: actions/cache@v2
91+
uses: actions/cache@v4
9292
with:
9393
path: third_party
9494
key: ${{ runner.os }}-thirdparty-v0.1
@@ -130,7 +130,7 @@ jobs:
130130
131131
- name: Cache Toolchain Directory
132132
id: cache-toolchain
133-
uses: actions/cache@v2
133+
uses: actions/cache@v4
134134
with:
135135
path: tools
136136
key: ${{ runner.os }}-toolchain-v0.1
@@ -139,7 +139,7 @@ jobs:
139139
140140
- name: Cache Third Party Directory
141141
id: cache-thirdparty
142-
uses: actions/cache@v2
142+
uses: actions/cache@v4
143143
with:
144144
path: third_party
145145
key: ${{ runner.os }}-thirdparty-v0.1

sim/simx/emulator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ warp_t::warp_t(uint32_t num_threads)
3434
: ireg_file(MAX_NUM_REGS, std::vector<Word>(num_threads))
3535
, freg_file(MAX_NUM_REGS, std::vector<uint64_t>(num_threads))
3636
#ifdef EXT_V_ENABLE
37-
, vreg_file(num_threads, std::vector(MAX_NUM_REGS, std::vector<Byte>(VLEN / 8)))
37+
, vreg_file(num_threads, std::vector(MAX_NUM_REGS, std::vector<Byte>(VLENB)))
3838
, vcsrs(num_threads)
3939
#endif
4040
, uuid(0)

sim/simx/vec_unit.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#ifdef EXT_V_ENABLE
22

33
#include "vec_unit.h"
4+
#include "emulator.h"
45

56
using namespace vortex;
67

sim/simx/vec_unit.h

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,6 @@
99

1010
namespace vortex {
1111

12-
struct vtype_t {
13-
uint32_t vill;
14-
uint32_t vma;
15-
uint32_t vta;
16-
uint32_t vsew;
17-
uint32_t vlmul;
18-
};
19-
20-
union reg_data_t {
21-
Word u;
22-
WordI i;
23-
WordF f;
24-
float f32;
25-
double f64;
26-
uint32_t u32;
27-
uint64_t u64;
28-
int32_t i32;
29-
int64_t i64;
30-
};
31-
3212
class VecUnit : public SimObject<VecUnit> {
3313
public:
3414
struct PerfStats {

0 commit comments

Comments
 (0)