[Pdbg] [PATCH 12/23] libpdbg: Register fake drivers with fake backend

Amitay Isaacs amitay at ozlabs.org
Tue Apr 14 12:47:39 AEST 2020


Signed-off-by: Amitay Isaacs <amitay at ozlabs.org>
Reviewed-by: Alistair Popple <alistair at popple.id.au>
---
 libpdbg/fake.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libpdbg/fake.c b/libpdbg/fake.c
index ae02463..64925d4 100644
--- a/libpdbg/fake.c
+++ b/libpdbg/fake.c
@@ -90,8 +90,8 @@ DECLARE_HW_UNIT(fake_thread);
 __attribute__((constructor))
 static void register_fake(void)
 {
-	pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &fake_fsi_hw_unit);
-	pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &fake_pib_hw_unit);
-	pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &fake_core_hw_unit);
-	pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &fake_thread_hw_unit);
+	pdbg_hwunit_register(PDBG_BACKEND_FAKE, &fake_fsi_hw_unit);
+	pdbg_hwunit_register(PDBG_BACKEND_FAKE, &fake_pib_hw_unit);
+	pdbg_hwunit_register(PDBG_BACKEND_FAKE, &fake_core_hw_unit);
+	pdbg_hwunit_register(PDBG_BACKEND_FAKE, &fake_thread_hw_unit);
 }
-- 
2.25.2



More information about the Pdbg mailing list