@@ -135,7 +135,7 @@ pub fn Mmio(comptime PackedT: type, access_type: MmioAccess(PackedT)) type {
135135 /// A one-field version of modify(), more helpful if `field_name` is comptime calculated.
136136 pub inline fn modify_one (
137137 self : * volatile @This (),
138- comptime field_name : []const u8 ,
138+ comptime field_name : [: 0 ]const u8 ,
139139 value : @FieldType (underlying_type , field_name ),
140140 ) void {
141141 // Replace with @Struct when migrating to zig 0.16
@@ -154,6 +154,7 @@ pub fn Mmio(comptime PackedT: type, access_type: MmioAccess(PackedT)) type {
154154 /// Set field `Field` of this register to `value`.
155155 /// This is implemented using read-modify-write.
156156 pub inline fn modify (self : * volatile @This (), fields : anytype ) void {
157+ @setEvalBranchQuota (10_000 );
157158 check_type_has_all_fields (PackedT , fields );
158159 const Fields = @TypeOf (fields );
159160
@@ -186,6 +187,7 @@ pub fn Mmio(comptime PackedT: type, access_type: MmioAccess(PackedT)) type {
186187 }
187188
188189 pub inline fn set_mask (self : * volatile @This (), fields : anytype ) void {
190+ @setEvalBranchQuota (10_000 );
189191 check_type_has_all_fields (PackedT , fields );
190192 const Fields = @TypeOf (fields );
191193
@@ -208,6 +210,7 @@ pub fn Mmio(comptime PackedT: type, access_type: MmioAccess(PackedT)) type {
208210 }
209211
210212 pub inline fn clear_mask (self : * volatile @This (), fields : anytype ) void {
213+ @setEvalBranchQuota (10_000 );
211214 check_type_has_all_fields (PackedT , fields );
212215 const Fields = @TypeOf (fields );
213216
0 commit comments