[Pdbg] [PATCH 2/2] libpdbg: Replace hard-coded chip id with defines
Amitay Isaacs
amitay at ozlabs.org
Tue May 26 15:13:12 AEST 2020
Signed-off-by: Amitay Isaacs <amitay at ozlabs.org>
---
libpdbg/cfam.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libpdbg/cfam.c b/libpdbg/cfam.c
index 0b0b6f0..0b670d8 100644
--- a/libpdbg/cfam.c
+++ b/libpdbg/cfam.c
@@ -241,11 +241,11 @@ DECLARE_HW_UNIT(p8_opb);
enum chip_type get_chip_type(uint64_t chip_id)
{
switch(GETFIELD(PPC_BITMASK32(12, 19), chip_id)) {
- case 0xea:
+ case CHIP_ID_P8:
return CHIP_P8;
- case 0xd3:
+ case CHIP_ID_P8P:
return CHIP_P8NV;
- case 0xd1:
+ case CHIP_ID_P9:
return CHIP_P9;
default:
return CHIP_UNKNOWN;
--
2.26.2
More information about the Pdbg
mailing list