Remove consts.rs and just use plain types

This commit is contained in:
2025-12-28 12:01:39 +01:00
parent 8024af6b13
commit 9a9bef7dd7
13 changed files with 117 additions and 148 deletions

View File

@@ -11,7 +11,6 @@ use std::{
};
use crate::{
consts::{Addr, RegValue},
core::commands::CoreCmd,
exceptions::{ExceptionType, MemoryExceptionType},
};
@@ -19,14 +18,14 @@ use crate::{
pub(crate) enum DebugCommand {
GetRegs(oneshot::Sender<RegsResponse>),
ReadMem {
addr: Addr,
addr: u64,
len: u64,
responder: oneshot::Sender<Result<Vec<u8>, MemoryExceptionType>>,
},
Step(oneshot::Sender<StopReason>),
Continue(oneshot::Sender<StopReason>, oneshot::Receiver<()>),
SetBreakpoint(Addr),
RemoveBreakpoint(Addr),
SetBreakpoint(u64),
RemoveBreakpoint(u64),
ExitDebugMode,
}
@@ -65,8 +64,8 @@ impl StopReason {
}
pub(crate) struct RegsResponse {
pub x_regs: [RegValue; 32],
pub pc: Addr,
pub x_regs: [u64; 32],
pub pc: u64,
}
pub fn run_stub(cmd_sender: mpsc::Sender<CoreCmd>) {