Skip to content

Commit 860b3ec

Browse files
committed
Update hart_id type in tests
1 parent d641156 commit 860b3ec

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

tests/test000.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ int main(int argc, char *argv[]) {
1212
// This is what Spike sets it to
1313
memory_layout.push_back(mem_cfg_t(reg_t(DRAM_BASE), reg_t(2048) << 20));
1414

15-
std::vector<int> hart_ids{0};
15+
std::vector<size_t> hart_ids{0};
1616

1717
Hammer hammer = Hammer("RV64GCV", "MSU", "vlen:512,elen:32", hart_ids, memory_layout,
1818
target_binary, std::nullopt);

tests/test001.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ int main(int argc, char *argv[]) {
1212
// This is what Spike sets it to
1313
memory_layout.push_back(mem_cfg_t(reg_t(DRAM_BASE), reg_t(2048) << 20));
1414

15-
std::vector<int> hart_ids{0};
15+
std::vector<size_t> hart_ids{0};
1616

1717
Hammer hammer = Hammer("RV64GCV", "MSU", "vlen:512,elen:64", hart_ids, memory_layout,
1818
target_binary, std::nullopt);

tests/test002.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ int main(int argc, char *argv[]) {
1414
// This is what Spike sets it to
1515
memory_layout.push_back(mem_cfg_t(reg_t(DRAM_BASE), reg_t(2048) << 20));
1616

17-
std::vector<int> hart_ids{0};
17+
std::vector<size_t> hart_ids{0};
1818

1919
Hammer hammer = Hammer("RV64GCV", "MSU", "vlen:512,elen:64", hart_ids, memory_layout,
2020
target_binary, std::nullopt);

tests/test003.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ int main(int argc, char *argv[]) {
1515
std::vector<std::string> htif_args;
1616
htif_args.push_back(target_binary);
1717

18-
std::vector<int> hart_ids{0};
18+
std::vector<size_t> hart_ids{0};
1919

2020
Hammer hammer = Hammer("RV64GCV", "MSU", "vlen:512,elen:64", hart_ids, memory_layout,
2121
target_binary, std::nullopt);

0 commit comments

Comments
 (0)