gem5-dev@gem5.org

The gem5 Developer List

View all threads

[S] Change in gem5/gem5[develop]: arch-arm: Initialize Debug using AArch64 version of the registers

GT
Giacomo Travaglini (Gerrit)
Thu, Jun 23, 2022 12:50 PM

Giacomo Travaglini has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/60731 )

Change subject: arch-arm: Initialize Debug using AArch64 version of the
registers
......................................................................

arch-arm: Initialize Debug using AArch64 version of the registers

Initialize Arm Self Hosted Debug using the AArch64 version of
Watchpoint registers

Change-Id: I2fc711970c7805d8de985846025b8f6de99b2682
Signed-off-by: Giacomo Travaglini giacomo.travaglini@arm.com

M src/arch/arm/self_debug.cc
1 file changed, 16 insertions(+), 3 deletions(-)

diff --git a/src/arch/arm/self_debug.cc b/src/arch/arm/self_debug.cc
index e327f58..85fbabe 100644
--- a/src/arch/arm/self_debug.cc
+++ b/src/arch/arm/self_debug.cc
@@ -347,10 +347,10 @@
}

  for (int i = 0; i <= dfr.wrps; i++) {
  •    WatchPoint wtp = WatchPoint((MiscRegIndex)(MISCREG_DBGWCR0 + i),
    
  •                                (MiscRegIndex)(MISCREG_DBGWVR0 + i),
    
  •    WatchPoint wtp = WatchPoint((MiscRegIndex)(MISCREG_DBGWCR0_EL1 +  
    

i),

  •                                (MiscRegIndex)(MISCREG_DBGWVR0_EL1 +  
    

i),
this, (bool)mm_fr2.varange, aarch32);

  •    const DBGWCR ctr = tc->readMiscReg(MISCREG_DBGWCR0 + i);
    
  •    const DBGWCR ctr = tc->readMiscReg(MISCREG_DBGWCR0_EL1 + i);
    
        wtp.updateControl(ctr);
        arWatchPoints.push_back(wtp);
    

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/60731
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I2fc711970c7805d8de985846025b8f6de99b2682
Gerrit-Change-Number: 60731
Gerrit-PatchSet: 1
Gerrit-Owner: Giacomo Travaglini giacomo.travaglini@arm.com
Gerrit-MessageType: newchange

Giacomo Travaglini has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/60731 ) Change subject: arch-arm: Initialize Debug using AArch64 version of the registers ...................................................................... arch-arm: Initialize Debug using AArch64 version of the registers Initialize Arm Self Hosted Debug using the AArch64 version of Watchpoint registers Change-Id: I2fc711970c7805d8de985846025b8f6de99b2682 Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com> --- M src/arch/arm/self_debug.cc 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src/arch/arm/self_debug.cc b/src/arch/arm/self_debug.cc index e327f58..85fbabe 100644 --- a/src/arch/arm/self_debug.cc +++ b/src/arch/arm/self_debug.cc @@ -347,10 +347,10 @@ } for (int i = 0; i <= dfr.wrps; i++) { - WatchPoint wtp = WatchPoint((MiscRegIndex)(MISCREG_DBGWCR0 + i), - (MiscRegIndex)(MISCREG_DBGWVR0 + i), + WatchPoint wtp = WatchPoint((MiscRegIndex)(MISCREG_DBGWCR0_EL1 + i), + (MiscRegIndex)(MISCREG_DBGWVR0_EL1 + i), this, (bool)mm_fr2.varange, aarch32); - const DBGWCR ctr = tc->readMiscReg(MISCREG_DBGWCR0 + i); + const DBGWCR ctr = tc->readMiscReg(MISCREG_DBGWCR0_EL1 + i); wtp.updateControl(ctr); arWatchPoints.push_back(wtp); -- To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/60731 To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings Gerrit-Project: public/gem5 Gerrit-Branch: develop Gerrit-Change-Id: I2fc711970c7805d8de985846025b8f6de99b2682 Gerrit-Change-Number: 60731 Gerrit-PatchSet: 1 Gerrit-Owner: Giacomo Travaglini <giacomo.travaglini@arm.com> Gerrit-MessageType: newchange