mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
linux-user, x86_64, i386: cleanup TARGET_NR_arch_prctl
Define do_arch_prctl() for i386 and x86_64, but return -TARGET_ENOSYS for i386. Signed-off-by: Laurent Vivier <laurent@vivier.eu> Reviewed-by: Taylor Simpson <tsimpson@quicinc.com> Message-Id: <20200310103403.3284090-14-laurent@vivier.eu> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
@@ -33,6 +33,8 @@ static inline void cpu_clone_regs_parent(CPUX86State *env, unsigned flags)
|
||||
{
|
||||
}
|
||||
|
||||
abi_long do_arch_prctl(CPUX86State *env, int code, abi_ulong addr);
|
||||
|
||||
#if defined(TARGET_ABI32)
|
||||
abi_long do_set_thread_area(CPUX86State *env, abi_ulong ptr);
|
||||
|
||||
@@ -42,8 +44,6 @@ static inline void cpu_set_tls(CPUX86State *env, target_ulong newtls)
|
||||
cpu_x86_load_seg(env, R_GS, env->segs[R_GS].selector);
|
||||
}
|
||||
#else
|
||||
abi_long do_arch_prctl(CPUX86State *env, int code, abi_ulong addr);
|
||||
|
||||
static inline void cpu_set_tls(CPUX86State *env, target_ulong newtls)
|
||||
{
|
||||
do_arch_prctl(env, TARGET_ARCH_SET_FS, newtls);
|
||||
|
||||
Reference in New Issue
Block a user