gdbstub_xtensa.c: Replace with cpu_ll_pc_to_ptr macro

Signed-off-by: Sachin Parekh <sachin.parekh@espressif.com>
This commit is contained in:
Sachin Parekh
2020-04-20 13:52:21 +05:30
parent 46d914ff45
commit c0a33487b1
3 changed files with 7 additions and 7 deletions

View File

@@ -103,7 +103,7 @@ static inline uint32_t cpu_ll_ptr_to_pc(const void* addr)
static inline void* cpu_ll_pc_to_ptr(uint32_t pc)
{
return (void*) ((pc & 0x3fffffff) | 0x40000000);
return (void*) ((pc & 0x3fffffffU) | 0x40000000U);
}
static inline void cpu_ll_set_watchpoint(int id,