Fix possible conversion errors by using __builtin_ffsll instead of __builtin_ffs

Signed-off-by: term_est <62337595+term-est@users.noreply.github.com>
pull/10895/head
term_est 2023-03-03 11:21:07 +03:00
rodzic acac972f70
commit 14724d1cb9
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 874B2FE6AEC1D48D
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -152,7 +152,7 @@ FORCE_INLINE_ATTR void xt_utils_set_watchpoint(int wp_num,
{
// Initialize DBREAKC bits (see Table 4–143 or isa_rm.pdf)
uint32_t dbreakc_reg = 0x3F;
dbreakc_reg = dbreakc_reg << (__builtin_ffs(size) - 1);
dbreakc_reg = dbreakc_reg << (__builtin_ffsll(size) - 1);
dbreakc_reg = dbreakc_reg & 0x3F;
if (on_read) {
dbreakc_reg |= BIT(30);