central-arch/pkg/sim/breakpoint.go

31 lines
350 B
Go
Raw Permalink Normal View History

2024-11-01 10:54:59 +00:00
package sim
type CpuBreakpoint struct {
Addr uint32
}
type WatchpointType uint
const (
READ WatchpointType = iota
WRITE
READ_WRITE
)
type CpuWatchpoint struct {
Addr uint32
Type WatchpointType
}
type CpuModeTransitionBreakType uint
const (
NONE CpuModeTransitionBreakType = iota
ALL
USER
SUPERVISOR
FAULT
PRIVILEGED
UNPRIVILEGED
)