Skip to content

Commit

Permalink
apparently unnamed bitfields exist
Browse files Browse the repository at this point in the history
  • Loading branch information
burhanr13 committed Jan 7, 2025
1 parent 0a3476c commit 85a3f2c
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions src/arm/arm.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ enum {
typedef union {
u32 w;
struct {
u32 _b0_3 : 4;
u32 : 4;
u32 declo : 4;
u32 _b8_19 : 12;
u32 : 12;
u32 dechi : 8;
u32 cond : 4;
};
Expand Down
8 changes: 4 additions & 4 deletions src/arm/arm_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,16 @@ typedef struct _ArmCore {
u32 w;
struct {
u32 jitattrs : 6;
u32 _6_31 : 26;
u32 : 26;
};
struct {
u32 m : 5;
u32 t : 1;
u32 f : 1;
u32 i : 1;
u32 reserved1 : 8;
u32 : 8;
u32 ge : 4;
u32 reserved2 : 7;
u32 : 7;
u32 q : 1;
u32 v : 1;
u32 c : 1;
Expand All @@ -73,7 +73,7 @@ typedef struct _ArmCore {
union {
u32 w;
struct {
u32 reserved : 28;
u32 : 28;
u32 nzcv : 4;
};
} fpscr;
Expand Down
36 changes: 18 additions & 18 deletions src/pica/gpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ typedef struct {
u16 height;
u16 width;
struct {
u32 _0 : 1;
u32 : 1;
u32 mag_filter : 1;
u32 min_filter : 1;
u32 _3 : 1;
u32 : 1;
u32 etc1 : 4;
u32 wrap_t : 4;
u32 wrap_s : 4;
u32 _16_20 : 4;
u32 : 4;
u32 shadow : 4;
u32 mipmapfilter : 4;
u32 type : 4;
Expand All @@ -62,11 +62,11 @@ typedef struct {
u32 rgb0 : 4;
u32 rgb1 : 4;
u32 rgb2 : 4;
u32 _12_15 : 4;
u32 : 4;
u32 a0 : 4;
u32 a1 : 4;
u32 a2 : 4;
u32 _28_31 : 4;
u32 : 4;
} source;
struct {
u32 rgb0 : 4;
Expand All @@ -75,7 +75,7 @@ typedef struct {
u32 a0 : 4;
u32 a1 : 4;
u32 a2 : 4;
u32 _24_31 : 8;
u32 : 8;
} operand;
struct {
u16 rgb;
Expand Down Expand Up @@ -138,14 +138,14 @@ typedef union {
u32 tex0enable : 1;
u32 tex1enable : 1;
u32 tex2enable : 1;
u32 _3_7 : 5;
u32 : 5;
u32 tex3coord : 2;
u32 tex3enable : 1;
u32 _11_12 : 2;
u32 : 2;
u32 tex2coord : 1;
u32 _14_15 : 2;
u32 : 2;
u32 clearcache : 1;
u32 _17_31 : 15;
u32 : 15;
} config;
TexUnitRegs tex0;
u32 tex0_cubeaddr[5];
Expand All @@ -167,7 +167,7 @@ typedef union {
struct {
u32 fogmode : 3;
u32 densitysource : 1;
u32 _4_7 : 4;
u32 : 4;
u32 update_rgb : 4;
u32 update_alpha : 4;
u32 zflip : 16;
Expand Down Expand Up @@ -204,7 +204,7 @@ typedef union {
u32 enable : 4;
u32 func : 4;
u32 ref : 8;
u32 _16_31 : 16;
u32 : 16;
} alpha_test;
struct {
u32 enable : 4;
Expand All @@ -217,7 +217,7 @@ typedef union {
u32 fail : 4;
u32 zfail : 4;
u32 zpass : 4;
u32 unused : 20;
u32 : 20;
} stencil_op;
struct {
u32 depthtest : 4;
Expand All @@ -227,7 +227,7 @@ typedef union {
u32 blue : 1;
u32 alpha : 1;
u32 depth : 1;
u32 unused : 19;
u32 : 19;
} color_mask;
u32 _108[8];
u32 fb_invalidate;
Expand All @@ -249,7 +249,7 @@ typedef union {
struct {
u32 width : 12;
u32 height : 12;
u32 _24_31 : 8;
u32 : 8;
} dim;
};
u32 w[0x40];
Expand Down Expand Up @@ -297,7 +297,7 @@ typedef union {
struct {
u64 comp : 48;
u64 size : 8;
u64 _unused : 4;
u64 : 4;
u64 count : 4;
};
} attrbuf[12];
Expand Down Expand Up @@ -329,7 +329,7 @@ typedef union {
struct {
u32 outmapcount : 8;
u32 mode : 8;
u32 unk : 16;
u32 : 16;
} prim_config;
u32 restart_primitive;
};
Expand Down Expand Up @@ -457,7 +457,7 @@ typedef union {
u32 id : 16;
u32 mask : 4;
u32 nparams : 8;
u32 unused : 3;
u32 : 3;
u32 incmode : 1;
};
} GPUCommand;
Expand Down
2 changes: 1 addition & 1 deletion src/services/hid.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ typedef union {
u32 x : 1;
u32 y : 1;
u32 gpio : 2;
u32 unused : 14;
u32 : 14;
u32 cright : 1;
u32 cleft : 1;
u32 cup : 1;
Expand Down
2 changes: 1 addition & 1 deletion src/srv.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ typedef union {
struct {
u32 paramsize_translate : 6;
u32 paramsize_normal : 6;
u32 unused : 4;
u32 : 4;
u32 command : 16;
};
} IPCHeader;
Expand Down

0 comments on commit 85a3f2c

Please sign in to comment.