use gdbstub::arch::Arch;
pub mod reg;
pub enum Riscv32 {}
pub enum Riscv64 {}
impl Arch for Riscv32 {
type Usize = u32;
type Registers = reg::RiscvCoreRegs<u32>;
type BreakpointKind = usize;
type RegId = reg::id::RiscvRegId<u32>;
fn target_description_xml() -> Option<&'static str> {
Some(include_str!("rv32i.xml"))
}
}
impl Arch for Riscv64 {
type Usize = u64;
type Registers = reg::RiscvCoreRegs<u64>;
type BreakpointKind = usize;
type RegId = reg::id::RiscvRegId<u64>;
fn target_description_xml() -> Option<&'static str> {
Some(include_str!("rv64i.xml"))
}
}