X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=riscv%2Fdebug_module.h;h=82c449ef6a70a699af5438db8a9adc83e353a356;hb=bb8c45f12eeaeb36ac69991f674d1971d2dc460d;hp=be9b8bc41c2b4975edcd65a82fc8f32858a734b8;hpb=cd1e73b4eda7ec555f2cb832fe98d618c377ea65;p=riscv-isa-sim.git diff --git a/riscv/debug_module.h b/riscv/debug_module.h index be9b8bc..82c449e 100644 --- a/riscv/debug_module.h +++ b/riscv/debug_module.h @@ -74,7 +74,7 @@ typedef struct { class debug_module_t : public abstract_device_t { public: - debug_module_t(sim_t *sim, unsigned progbufsize); + debug_module_t(sim_t *sim, unsigned progbufsize, unsigned max_bus_master_bits); ~debug_module_t(); void add_device(bus_t *bus); @@ -96,12 +96,15 @@ class debug_module_t : public abstract_device_t // Actual size of the program buffer, which is 1 word bigger than we let on // to implement the implicit ebreak at the end. unsigned program_buffer_bytes; + unsigned max_bus_master_bits ; static const unsigned debug_data_start = 0x380; unsigned debug_progbuf_start; - static const unsigned debug_abstract_size = 2; + static const unsigned debug_abstract_size = 5; unsigned debug_abstract_start; + static const unsigned hartsellen = 10; + sim_t *sim; uint8_t debug_rom_whereto[4];