29#ifndef __ARCH_RISCV_LINUX_LINUX_HH__
30#define __ARCH_RISCV_LINUX_LINUX_HH__
44 static const ByteOrder
byteOrder = ByteOrder::little;
202 uint64_t
stack, uint64_t tls)
375 uint64_t
stack, uint64_t tls)
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
static const int TGT_SIGWINCH
static const int TGT_SIGCHLD
static const int TGT_SIGIOT
static const int TGT_SIGSEGV
static constexpr int TGT_O_CLOEXEC
O_CLOEXEC.
static const int TGT_SIGURG
static const int TGT_SIGCONT
static const int TGT_SIGCLD
static constexpr int TGT_O_NOFOLLOW
O_NOFOLLOW.
static constexpr int TGT_O_RDONLY
open(2) flag values.
static const int TGT_SIGBUS
static const int TGT_SIGXFSZ
static constexpr unsigned TGT_MAP_ANONYMOUS
static constexpr int TGT_O_RDWR
O_RDWR.
static const int TGT_SIGKILL
static const int TGT_SIGINT
static void archClone(uint64_t flags, Process *pp, Process *cp, ThreadContext *ptc, ThreadContext *ctc, uint64_t stack, uint64_t tls)
static const int TGT_SIGUSR2
static const int TGT_SIGTTIN
static const int TGT_SIGTSTP
static constexpr int TGT_FASYNC
FASYNC.
static constexpr unsigned TGT_MAP_SHARED
static const int TGT_SIGILL
static const int TGT_SIGHUP
static const int TGT_SIGTERM
static constexpr unsigned TGT_MAP_FIXED
static constexpr int TGT_O_DSYNC
O_DSYNC.
static constexpr int TGT_O_EXCL
O_EXCL.
static const int TGT_SIGXCPU
static constexpr int TGT_O_NONBLOCK
O_NONBLOCK.
static constexpr int TGT_O_APPEND
O_APPEND.
static constexpr int TGT_FSYNC
FSYNC.
static const int TGT_SIGPROF
static constexpr unsigned TGT_MREMAP_FIXED
static const int TGT_SIGQUIT
static constexpr int TGT_O_SYNC
O_SYNC.
static const int TGT_SIGEMT
static const int TGT_SIGSTOP
static const int TGT_SIGLOST
static constexpr int TGT_O_CREAT
O_CREAT.
static const int TGT_SIGIO
static constexpr int TGT_O_PATH
O_PATH.
static const int TGT_SIGALRM
static const int TGT_SIGPIPE
static const int TGT_SIGSYS
static constexpr unsigned TGT_MAP_POPULATE
static constexpr int TGT_O_NOCTTY
O_NOCTTY.
static constexpr int TGT_O_LARGEFILE
O_LARGEFILE.
static const int TGT_SIGVTALRM
static const int TGT_SIGPWR
static constexpr int TGT_O_DIRECTORY
O_DIRECTORY.
static const int TGT_SIGTTOU
static const int TGT_SIGFPE
static constexpr int TGT_O_NOINHERIT
O_NOINHERIT.
static const int TGT_SIGUSR1
static constexpr unsigned TGT_MAP_PRIVATE
static const int TGT_SIGABRT
static constexpr int TGT_O_WRONLY
O_WRONLY.
static const int TGT_SIGTRAP
static constexpr int TGT_O_TRUNC
O_TRUNC.
static const int TGT_SIGPOLL
static constexpr int TGT_O_NOATIME
O_NOATIME.
static constexpr int TGT_O_DIRECT
O_DIRECT.
static const int TGT_SIGPIPE
static const int TGT_SIGABRT
static const int TGT_SIGSYS
static constexpr unsigned TGT_MAP_SHARED
static const int TGT_SIGSTOP
static constexpr int TGT_O_RDONLY
open(2) flag values.
static const int TGT_SIGURG
static const int TGT_SIGWINCH
static constexpr int TGT_O_NOCTTY
O_NOCTTY.
static const int TGT_SIGUSR1
static const int TGT_SIGPWR
static const int TGT_SIGKILL
static constexpr int TGT_O_APPEND
O_APPEND.
static const int TGT_SIGXCPU
static const int TGT_SIGPOLL
static const int TGT_SIGUSR2
static constexpr unsigned TGT_MAP_PRIVATE
static const int TGT_SIGCONT
static void archClone(uint64_t flags, Process *pp, Process *cp, ThreadContext *ptc, ThreadContext *ctc, uint64_t stack, uint64_t tls)
static const int TGT_SIGCLD
static const int TGT_SIGHUP
static constexpr unsigned TGT_MREMAP_FIXED
static const int TGT_SIGILL
static const int TGT_SIGFPE
static constexpr int TGT_O_DIRECTORY
O_DIRECTORY.
static constexpr int TGT_O_TRUNC
O_TRUNC.
static constexpr unsigned TGT_MAP_POPULATE
static constexpr int TGT_FASYNC
FASYNC.
static const int TGT_SIGTTIN
static constexpr int TGT_O_DSYNC
O_DSYNC.
static constexpr int TGT_O_SYNC
O_SYNC.
static constexpr int TGT_O_NONBLOCK
O_NONBLOCK.
static const int TGT_SIGLOST
static const int TGT_SIGVTALRM
static constexpr int TGT_O_EXCL
O_EXCL.
static const int TGT_SIGALRM
static const int TGT_SIGIOT
static constexpr int TGT_O_PATH
O_PATH.
static constexpr int TGT_O_CREAT
O_CREAT.
static const int TGT_SIGINT
static const int TGT_SIGCHLD
static constexpr unsigned TGT_MAP_FIXED
static constexpr unsigned TGT_MAP_ANONYMOUS
static const int TGT_SIGTSTP
static constexpr int TGT_O_DIRECT
O_DIRECT.
static constexpr int TGT_O_NOFOLLOW
O_NOFOLLOW.
static const int TGT_SIGBUS
static const int TGT_SIGTTOU
static const int TGT_SIGIO
static constexpr int TGT_O_NOINHERIT
O_NOINHERIT.
static constexpr int TGT_O_NOATIME
O_NOATIME.
static const int TGT_SIGEMT
static const int TGT_SIGTRAP
static constexpr int TGT_O_RDWR
O_RDWR.
static const int TGT_SIGSEGV
static constexpr int TGT_FSYNC
FSYNC.
static const int TGT_SIGPROF
static const int TGT_SIGQUIT
static const int TGT_SIGTERM
static constexpr int TGT_O_WRONLY
O_WRONLY.
static const int TGT_SIGXFSZ
static constexpr int TGT_O_LARGEFILE
O_LARGEFILE.
static constexpr int TGT_O_CLOEXEC
O_CLOEXEC.
static const ByteOrder byteOrder
ThreadContext is the external interface to all thread state for anything outside of the CPU.
virtual BaseISA * getIsaPtr() const =0
virtual void setReg(const RegId ®, RegVal val)
constexpr uint64_t sext(uint64_t val)
Sign-extend an N-bit value to 64 bits.
constexpr auto & StackPointerReg
constexpr auto & ThreadPointerReg
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
Limit struct for getrlimit/setrlimit.
uint32_t rlim_cur
soft limit
uint32_t rlim_max
hard limit
int32_t ___glibc_reserved[2]