diff --git a/include/logging/log_instance.h b/include/logging/log_instance.h index 25eb47f3f2c..197ea4ebb23 100644 --- a/include/logging/log_instance.h +++ b/include/logging/log_instance.h @@ -35,6 +35,10 @@ struct log_source_dynamic_data { */ uint32_t dummy[2]; #endif +#if defined(CONFIG_RISCV) && defined(CONFIG_64BIT) + /* Workaround: RV64 needs to ensure that structure is just 8 bytes. */ + uint32_t dummy; +#endif }; /** @brief Creates name of variable and section for constant log data.