| Index: src/s390/simulator-s390.cc
|
| diff --git a/src/s390/simulator-s390.cc b/src/s390/simulator-s390.cc
|
| index 99437327b46ca9a1f9864eabd45ed97c38bf8733..434fbffcfc53e040be9dafb7e593573090c8b536 100644
|
| --- a/src/s390/simulator-s390.cc
|
| +++ b/src/s390/simulator-s390.cc
|
| @@ -23,6 +23,8 @@
|
| namespace v8 {
|
| namespace internal {
|
|
|
| +const auto GetRegConfig = RegisterConfiguration::Crankshaft;
|
| +
|
| // This macro provides a platform independent use of sscanf. The reason for
|
| // SScanF not being implemented in a platform independent way through
|
| // ::v8::internal::OS in the same way as SNPrintF is that the
|
| @@ -331,7 +333,7 @@ void S390Debugger::Debug() {
|
| for (int i = 0; i < kNumRegisters; i++) {
|
| value = GetRegisterValue(i);
|
| PrintF(" %3s: %08" V8PRIxPTR,
|
| - Register::from_code(i).ToString(), value);
|
| + GetRegConfig()->GetGeneralRegisterName(i), value);
|
| if ((argc == 3 && strcmp(arg2, "fp") == 0) && i < 8 &&
|
| (i % 2) == 0) {
|
| dvalue = GetRegisterPairDoubleValue(i);
|
| @@ -346,7 +348,7 @@ void S390Debugger::Debug() {
|
| for (int i = 0; i < kNumRegisters; i++) {
|
| value = GetRegisterValue(i);
|
| PrintF(" %3s: %08" V8PRIxPTR " %11" V8PRIdPTR,
|
| - Register::from_code(i).ToString(), value, value);
|
| + GetRegConfig()->GetGeneralRegisterName(i), value, value);
|
| if ((argc == 3 && strcmp(arg2, "fp") == 0) && i < 8 &&
|
| (i % 2) == 0) {
|
| dvalue = GetRegisterPairDoubleValue(i);
|
| @@ -362,14 +364,15 @@ void S390Debugger::Debug() {
|
| float fvalue = GetFPFloatRegisterValue(i);
|
| uint32_t as_words = bit_cast<uint32_t>(fvalue);
|
| PrintF("%3s: %f 0x%08x\n",
|
| - DoubleRegister::from_code(i).ToString(), fvalue, as_words);
|
| + GetRegConfig()->GetDoubleRegisterName(i), fvalue,
|
| + as_words);
|
| }
|
| } else if (strcmp(arg1, "alld") == 0) {
|
| for (int i = 0; i < DoubleRegister::kNumRegisters; i++) {
|
| dvalue = GetFPDoubleRegisterValue(i);
|
| uint64_t as_words = bit_cast<uint64_t>(dvalue);
|
| PrintF("%3s: %f 0x%08x %08x\n",
|
| - DoubleRegister::from_code(i).ToString(), dvalue,
|
| + GetRegConfig()->GetDoubleRegisterName(i), dvalue,
|
| static_cast<uint32_t>(as_words >> 32),
|
| static_cast<uint32_t>(as_words & 0xffffffff));
|
| }
|
|
|