Skip to content

Commit 4ec17dc

Browse files
committed
core: debug: fix missing BG_REG_ without DEBUG_SUPPORT.
1 parent 203eabc commit 4ec17dc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

core/debug/debug.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,20 +295,20 @@ static inline uint32_t debug_norm_reg_value(unsigned regID, uint32_t value) {
295295
#else
296296
#define DBG_REG_TOUCH_W(ID, OLD, NEW) \
297297
do { \
298-
(void)(ID); \
298+
(void)(DBG_REG_##ID); \
299299
(void)(OLD); \
300300
(void)(NEW); \
301301
} while (0)
302302

303303
#define REG_READ_EX(ID, EXPR) \
304304
(__extension__({ \
305-
(void)(ID); \
305+
(void)(DBG_REG_##ID); \
306306
(uint32_t)(EXPR); \
307307
}))
308308

309309
#define REG_WRITE_EX(ID, LVAL, VAL) \
310310
(__extension__({ \
311-
(void)(ID); \
311+
(void)(DBG_REG_##ID); \
312312
uint32_t __new = (uint32_t)(VAL); \
313313
(LVAL) = (__new); \
314314
}))

0 commit comments

Comments
 (0)