Skip to content

Commit

Permalink
Use vector properties for symbol files
Browse files Browse the repository at this point in the history
  • Loading branch information
nbosb authored Dec 13, 2024
1 parent aeab27f commit d405e82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions include/avp64/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@
#ifndef AVP64_CPU_H
#define AVP64_CPU_H

#include <memory>
#include "vcml.h"
#include "avp64/core.h"

#include <memory>
#include <vector>

namespace avp64 {

enum : mwr::u64 {
Expand All @@ -39,7 +41,7 @@ class cpu : public vcml::component
public:
vcml::property<size_t> ncores;
vcml::property<size_t> clusterid;
vcml::property<std::string> symbols;
vcml::property<std::vector<std::string>> symbols;
vcml::property<bool> async;
vcml::property<unsigned int> async_rate;

Expand Down
2 changes: 1 addition & 1 deletion src/avp64/cpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ cpu::cpu(const sc_core::sc_module_name& nm):
vcml::component(nm),
ncores("ncores", 1),
clusterid("clusterid", 0),
symbols("symbols", ""),
symbols("symbols"),
async("async", false),
async_rate("async_rate", 10),
gic_cpuif("addr_gic_cpuif", { GIC_CPUIF_LO, GIC_CPUIF_HI }),
Expand Down

0 comments on commit d405e82

Please sign in to comment.