38#ifndef __ARCH_X86_LINUX_LINUX_HH__
39#define __ARCH_X86_LINUX_LINUX_HH__
58 static const ByteOrder
byteOrder = ByteOrder::little;
64 uint64_t
stack, uint64_t tls)
83template <
typename ABI>
85 typename
std::enable_if_t<std::is_base_of_v<X86Linux::SyscallABI, ABI>>>
virtual void copyRegsFrom(ThreadContext *src)=0
This class encapsulates the types, structures, constants, functions, and syscall-number mappings spec...
static const unsigned TGT_CLONE_SETTLS
This class represents the return value from an emulated system call, including any errno setting.
int64_t encodedValue() const
The encoded value (as described above)
ThreadContext is the external interface to all thread state for anything outside of the CPU.
virtual void setMiscRegNoEffect(RegIndex misc_reg, RegVal val)=0
virtual BaseISA * getIsaPtr() const =0
virtual void setReg(const RegId ®, RegVal val)
static const int TGT_SIGTTOU
static constexpr unsigned TGT_MAP_NORESERVE
static constexpr int TGT_O_CLOEXEC
static constexpr int TGT_O_DIRECT
O_DIRECTIO.
static constexpr int TGT_O_DIRECTORY
static constexpr unsigned TGT_MAP_POPULATE
static constexpr int TGT_O_NONBLOCK
O_NONBLOCK.
static const int TGT_SIGVTALRM
static const int TGT_SIGILL
static const int TGT_SIGKILL
static constexpr int TGT_O_EXCL
O_EXCL.
static const int TGT_SIGTERM
static constexpr unsigned TGT_MAP_FILE
static const int TGT_SIGXFSZ
static const int TGT_SIGFPE
static constexpr int TGT_O_CREAT
O_CREAT.
static constexpr unsigned TGT_MAP_PRIVATE
static constexpr unsigned TGT_MAP_STACK
static constexpr unsigned TGT_MAP_32BIT
static const int TGT_SIGSTKFLT
static constexpr unsigned TGT_MAP_ANONYMOUS
static constexpr int TGT_O_RDONLY
O_RDONLY.
static constexpr int TGT_O_RDWR
O_RDWR.
static constexpr unsigned TGT_MAP_FIXED
static const int TGT_SIGTRAP
static const int TGT_SIGIO
static constexpr int TGT_O_WRONLY
O_WRONLY.
static const int TGT_SIGXCPU
static const int TGT_SIGHUP
static const int TGT_SIGPOLL
static constexpr int TGT_O_PATH
static constexpr int TGT_O_TRUNC
O_TRUNC.
static constexpr int TGT_O_LARGEFILE
static constexpr int TGT_O_NOATIME
static const int TGT_SIGSYS
static const int TGT_SIGURG
static const int TGT_SIGPWR
static constexpr int TGT_O_DSYNC
O_DSYNC.
static const int TGT_SIGTSTP
static const int TGT_SIGSEGV
static const int TGT_SIGBUS
uint32_t size_t
Basic X86 Linux types.
static const int TGT_SIGUSR2
static constexpr unsigned TGT_MAP_GROWSDOWN
static const int TGT_SIGQUIT
static constexpr unsigned TGT_MAP_ANON
static const int TGT_SIGTTIN
static constexpr unsigned TGT_MAP_DENYWRITE
static constexpr unsigned TGT_MAP_NONBLOCK
static constexpr int TGT_O_SYNC
O_SYNC.
static constexpr unsigned TGT_MAP_HUGETLB
static const int TGT_SIGUNUSED
static constexpr unsigned TGT_MAP_LOCKED
static const int TGT_SIGINT
static constexpr int TGT_O_NOCTTY
O_NOCTTY.
static constexpr int TGT_O_APPEND
O_APPEND.
static const int TGT_SIGABRT
static const int TGT_SIGALRM
static const int TGT_SIGPROF
static constexpr int TGT_O_NOFOLLOW
static const int TGT_SIGPIPE
static const int TGT_SIGUSR1
static const int TGT_SIGWINCH
static constexpr unsigned TGT_MAP_EXECUTABLE
static const int TGT_SIGCHLD
static constexpr unsigned TGT_MAP_SHARED
static constexpr int TGT_FASYNC
static const int TGT_SIGSTOP
static const int TGT_SIGCONT
static const std::map< int, int > mmapFlagTable
static const int TGT_SIGIOT
static const int TGT_SIGSYS
static constexpr int TGT_O_DSYNC
static constexpr unsigned TGT_MAP_ANONYMOUS
static const int TGT_SIGUNUSED
static constexpr int TGT_O_DIRECTORY
static const int TGT_SIGQUIT
static const int TGT_SIGABRT
static constexpr unsigned TGT_MAP_EXECUTABLE
static const int TGT_SIGTRAP
static constexpr int TGT_O_EXCL
O_EXCL.
static constexpr int TGT_O_RDWR
O_RDWR.
static const int TGT_SIGALRM
static constexpr int TGT_O_NOFOLLOW
static const int TGT_SIGSTKFLT
static const int TGT_SIGUSR2
static const int TGT_SIGILL
static const int TGT_SIGSTOP
static const int TGT_SIGFPE
static constexpr unsigned TGT_MAP_HUGETLB
static constexpr int TGT_O_CLOEXEC
static constexpr int TGT_O_NOATIME
static const int TGT_SIGURG
static const int TGT_SIGSEGV
static const int TGT_SIGUSR1
static const int TGT_SIGTSTP
static const int TGT_SIGPOLL
static const int TGT_SIGPROF
static constexpr int TGT_O_LARGEFILE
static const int TGT_SIGCONT
uint64_t size_t
Basic X86_64 Linux types.
static constexpr int TGT_O_CREAT
O_CREAT.
static constexpr int TGT_O_APPEND
O_APPEND.
static const int TGT_SIGPIPE
static const int TGT_SIGINT
static constexpr int TGT_O_SYNC
O_SYNC.
static constexpr int TGT_O_NONBLOCK
O_NONBLOCK.
static constexpr int TGT_O_RDONLY
O_RDONLY.
static const int TGT_SIGHUP
static const int TGT_SIGXFSZ
static constexpr unsigned TGT_MAP_SHARED
static const int TGT_SIGXCPU
static const int TGT_SIGTTOU
static const int TGT_SIGPWR
static constexpr unsigned TGT_MAP_STACK
static const int TGT_SIGVTALRM
static constexpr unsigned TGT_MAP_NONBLOCK
static constexpr unsigned TGT_MAP_FILE
static const int TGT_SIGTERM
static constexpr unsigned TGT_MAP_GROWSDOWN
static constexpr unsigned TGT_MAP_FIXED
static const int TGT_SIGCHLD
static const int TGT_SIGKILL
static constexpr int TGT_O_WRONLY
O_WRONLY.
static const int TGT_SIGWINCH
static constexpr unsigned TGT_MAP_POPULATE
static constexpr unsigned TGT_MAP_LOCKED
static constexpr int TGT_FASYNC
static const int TGT_SIGIO
static constexpr unsigned TGT_MAP_DENYWRITE
static constexpr int TGT_O_PATH
static const int TGT_SIGBUS
static constexpr unsigned TGT_MAP_ANON
static const int TGT_SIGTTIN
static constexpr unsigned TGT_MAP_32BIT
static constexpr unsigned TGT_MAP_NORESERVE
static constexpr int TGT_O_NOCTTY
O_NOCTTY.
static constexpr int TGT_O_TRUNC
O_TRUNC.
static constexpr unsigned TGT_MAP_PRIVATE
static constexpr int TGT_O_DIRECT
O_DIRECTIO.
static const int TGT_SIGIOT
static const ByteOrder byteOrder
static void archClone(uint64_t flags, Process *pp, Process *cp, ThreadContext *ptc, ThreadContext *ctc, uint64_t stack, uint64_t tls)
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
Overload hash function for BasicBlockRange type.
int32_t stx_ctime_reserved
int32_t stx_btime_reserved
int32_t stx_atime_reserved
uint64_t stx_attributes_mask
int32_t stx_mtime_reserved
static void store(ThreadContext *tc, const SyscallReturn &ret)