fixed a missing feature

Signed-off-by: Jakub Doka <jakub.doka2@gmail.com>
This commit is contained in:
Jakub Doka 2024-12-22 21:41:28 +01:00
parent 8ededb8612
commit 9afe191bca
No known key found for this signature in database
GPG key ID: C6E9A89936B8C143

View file

@ -41,6 +41,7 @@ pub trait Memory {
fn log_instr(&mut self, _at: Address, _regs: &[Value]) {}
}
#[cfg(feature = "alloc")]
#[derive(Default)]
pub struct InstrLogger {
#[cfg(debug_assertions)]
@ -49,6 +50,7 @@ pub struct InstrLogger {
disp_buf: alloc::string::String,
}
#[cfg(feature = "alloc")]
impl InstrLogger {
/// # Safety
/// - `addr` needs to point to a valid instruction