Skip to content

Commit

Permalink
Ioctl/Radeon: Adds missing func member copying
Browse files Browse the repository at this point in the history
  • Loading branch information
Sonicadvance1 committed Sep 9, 2024
1 parent 7ab874b commit 6e2391a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/Tools/LinuxEmulation/LinuxSyscalls/x32/Ioctl/drm.h
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ namespace RADEON {
};

struct FEX_PACKED FEX_ANNOTATE("alias-x86_32-drm_radeon_init") FEX_ANNOTATE("fex-match") fex_drm_radeon_init_t {
enum {} func;
uint32_t func;

compat_ulong_t sarea_priv_offset;
int32_t is_pci;
Expand All @@ -691,6 +691,7 @@ namespace RADEON {

operator drm_radeon_init_t() const {
drm_radeon_init_t val {};
memcpy(&val.func, &func, sizeof(val.func));
CPYT(sarea_priv_offset);
CPYT(is_pci);
CPYT(cp_mode);
Expand All @@ -715,6 +716,7 @@ namespace RADEON {
}

fex_drm_radeon_init_t(drm_radeon_init_t val) {
memcpy(&func, &val.func, sizeof(val.func));
CPYF(sarea_priv_offset);
CPYF(is_pci);
CPYF(cp_mode);
Expand Down

0 comments on commit 6e2391a

Please sign in to comment.