Merge branch 'master' of https://github.com/mariusmm/RISC-V-TLM
This commit is contained in:
commit
3740cd7d5f
|
@ -20,7 +20,7 @@
|
||||||
constexpr char nibble_to_hex[16] = { '0', '1', '2', '3', '4', '5', '6', '7',
|
constexpr char nibble_to_hex[16] = { '0', '1', '2', '3', '4', '5', '6', '7',
|
||||||
'8', '9', 'a', 'b', 'c', 'd', 'e', 'f' };
|
'8', '9', 'a', 'b', 'c', 'd', 'e', 'f' };
|
||||||
|
|
||||||
Debug::Debug(CPU *cpu, Memory* mem): sc_module(std::string("Debug")) {
|
Debug::Debug(CPU *cpu, Memory* mem): sc_module(sc_core::sc_module_name("Debug")) {
|
||||||
dbg_cpu = cpu;
|
dbg_cpu = cpu;
|
||||||
dbg_mem = mem;
|
dbg_mem = mem;
|
||||||
|
|
||||||
|
|
|
@ -109,7 +109,8 @@ void Trace::b_transport(tlm::tlm_generic_payload &trans,
|
||||||
unsigned char *ptr = trans.get_data_ptr();
|
unsigned char *ptr = trans.get_data_ptr();
|
||||||
delay = sc_core::SC_ZERO_TIME;
|
delay = sc_core::SC_ZERO_TIME;
|
||||||
|
|
||||||
(void) write(ptSlave, ptr, 1);
|
int a = write(ptSlave, ptr, 1);
|
||||||
|
(void) a;
|
||||||
|
|
||||||
trans.set_response_status(tlm::TLM_OK_RESPONSE);
|
trans.set_response_status(tlm::TLM_OK_RESPONSE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue