feat(debug): instruction-level coverage and FP register display
Assisted-by: GLM 5.3 Flash
This commit is contained in:
@@ -78,10 +78,20 @@ func (s *Session) GetFPRegs() (FPRegs, error) {
|
||||
return fp, nil
|
||||
}
|
||||
|
||||
// VectorRegs holds the LSX/LASX vector register state (placeholder).
|
||||
type VectorRegs struct{}
|
||||
// VectorRegs holds the FP register state shown by the regs command
|
||||
// (the scalar FP subset: 32 64-bit registers, fcc and fcsr; the LSX/LASX
|
||||
// vector files are not read yet).
|
||||
type VectorRegs struct {
|
||||
F [32]uint64
|
||||
FCC uint64
|
||||
FCSR uint32
|
||||
}
|
||||
|
||||
// GetVectorRegs retrieves the vector registers (not yet implemented for loong64).
|
||||
// GetVectorRegs retrieves the FP registers.
|
||||
func (s *Session) GetVectorRegs() (VectorRegs, error) {
|
||||
return VectorRegs{}, nil
|
||||
fp, err := s.GetFPRegs()
|
||||
if err != nil {
|
||||
return VectorRegs{}, err
|
||||
}
|
||||
return VectorRegs{F: fp.F, FCC: fp.FCC, FCSR: fp.FCSR}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user