Skip to content

Commit c20eff8

Browse files
committed
[adc_ctrl,dv] Make adc_ctrl_filter_cfg_t unpacked
The layout of this structure doesn't really matter and it gets randomised (see e.g. adc_ctrl_env_cfg::filter_cfg), which will mean that min_v and max_v are picked uniformly from [2^31, 2^31-1]. I really don't believe that's intended. Signed-off-by: Rupert Swarbrick <[email protected]>
1 parent f5b1232 commit c20eff8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hw/ip/adc_ctrl/dv/env/adc_ctrl_env_pkg.sv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ package adc_ctrl_env_pkg;
8181
} adc_ctrl_filter_cond_e;
8282

8383
// Filter configuration
84-
typedef struct packed {
84+
typedef struct {
8585
adc_ctrl_filter_cond_e cond; // Condition
8686
int min_v; // Minimum value
8787
int max_v; // Maximum value

0 commit comments

Comments
 (0)