mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-10 14:00:18 +02:00
This isn't quite a 100% clean sweep of IWYU. There are some false positives where clang fails. Additionally there are still a few missed in the frontend side of things that I didn't get to
31 lines
696 B
C++
31 lines
696 B
C++
/*
|
|
$info$
|
|
tags: LinuxSyscalls|syscalls-x86-32
|
|
$end_info$
|
|
*/
|
|
|
|
#pragma once
|
|
#include <stdint.h>
|
|
|
|
namespace FEXCore::Core {
|
|
struct CpuStateFrame;
|
|
}
|
|
|
|
namespace FEX::HLE::x32 {
|
|
// We must define this ourselves since it doesn't exist on non-x86 platforms
|
|
struct user_desc {
|
|
uint32_t entry_number;
|
|
uint32_t base_addr;
|
|
uint32_t limit;
|
|
uint32_t seg_32bit : 1;
|
|
uint32_t contents : 2;
|
|
uint32_t read_exec_only : 1;
|
|
uint32_t limit_in_pages : 1;
|
|
uint32_t seg_not_present : 1;
|
|
uint32_t useable : 1;
|
|
};
|
|
|
|
uint64_t SetThreadArea(FEXCore::Core::CpuStateFrame *Frame, void *tls);
|
|
void AdjustRipForNewThread(FEXCore::Core::CpuStateFrame *Frame);
|
|
}
|