Skip to content

Commit

Permalink
Remove bb_trace property
Browse files Browse the repository at this point in the history
Signed-off-by: Nils Bosbach <bosbach@ice.rwth-aachen.de>
  • Loading branch information
nbosb committed Nov 29, 2024
1 parent c7ca20f commit 69aee24
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion include/avp64/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ class core : public vcml::processor, private ocx::env
std::vector<std::shared_ptr<core>> m_syscall_subscriber;
std::unordered_set<vcml::u64> m_update_mem;
std::list<std::pair<int, std::shared_ptr<void>>> m_syscalls;
bool m_bb_trace;

void timer_irq_trigger(int timer_id);
static void segfault_handler(int sig, siginfo_t* si, void* unused);
Expand All @@ -104,7 +105,6 @@ class core : public vcml::processor, private ocx::env
public:
using vcml::component::transport; // needed to not hide vcml transport
// function by ocx transport
vcml::property<bool> bb_trace;

vcml::gpio_initiator_array timer_irq_out;
std::vector<std::shared_ptr<sc_core::sc_event>> timer_events;
Expand Down
1 change: 0 additions & 1 deletion include/avp64/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ class cpu : public vcml::component
vcml::property<std::string> symbols;
vcml::property<bool> async;
vcml::property<unsigned int> async_rate;
vcml::property<bool> bb_trace;

vcml::property<vcml::range> gic_cpuif;
vcml::property<vcml::range> gic_distif;
Expand Down
9 changes: 6 additions & 3 deletions src/avp64/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,11 @@ void core::interrupt(size_t irq, bool set) {
}

void core::simulate(size_t cycles) {
if (m_bb_trace != is_tracing_basic_blocks()) {
m_bb_trace = is_tracing_basic_blocks();
m_core->trace_basic_blocks(m_bb_trace);
}

// insn_count() is only reset at the beginning of step(), but not at
// the end, so the number of cycles can only be summed up in the
// following quantum
Expand Down Expand Up @@ -455,13 +460,12 @@ core::core(const sc_core::sc_module_name& nm, vcml::u64 procid,
m_syscall_subscriber(),
m_update_mem(),
m_syscalls(),
bb_trace("bb_trace", false),
m_bb_trace(false),
timer_irq_out("TIMER_IRQ_OUT"),
timer_events(4) {
symbols.inherit_default();
async.inherit_default();
async_rate.inherit_default();
bb_trace.inherit_default();

m_ocx_handle = dlopen("libocx-qemu-arm.so", RTLD_LAZY);
if (!m_ocx_handle)
Expand All @@ -475,7 +479,6 @@ core::core(const sc_core::sc_module_name& nm, vcml::u64 procid,
m_core = m_create_instance_func(20201012ull, *this, "Cortex-A72");
if (!m_core)
VCML_ERROR("Could not create ocx::core instance");
m_core->trace_basic_blocks(bb_trace);

set_little_endian();

Expand Down
1 change: 0 additions & 1 deletion src/avp64/cpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ cpu::cpu(const sc_core::sc_module_name& nm):
symbols("symbols", ""),
async("async", false),
async_rate("async_rate", 10),
bb_trace("bb_trace", false),
gic_cpuif("addr_gic_cpuif", { GIC_CPUIF_LO, GIC_CPUIF_HI }),
gic_distif("addr_gic_distif", { GIC_DISTIF_LO, GIC_DISTIF_HI }),
gic_vifctrl("addr_gic_vifctrl", { GIC_VIFCTRL_LO, GIC_VIFCTRL_HI }),
Expand Down

0 comments on commit 69aee24

Please sign in to comment.