|
From: | Richard Henderson |
Subject: | Re: [PATCH v2 09/12] bsd-user: Start translation of arch-specific sysctls |
Date: | Tue, 14 Feb 2023 11:36:44 -1000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 |
On 2/13/23 14:27, Warner Losh wrote:
+ case HW_NCPU: + if (oldlen) { + (*(int32_t *)holdp) = tswap32(bsd_get_ncpu()); + } + holdlen = sizeof(int32_t); + ret = 0; + goto out;
Anything using SYSCTL_INT should use abi_int.
+#if defined(TARGET_ARM) + case HW_FLOATINGPT: + if (oldlen) { + ARMCPU *cpu = env_archcpu(env); + *(abi_int *)holdp = cpu_isar_feature(aa32_vfp, cpu); + } + holdlen = sizeof(int32_t);
abi_int for consistency. Otherwise, Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
[Prev in Thread] | Current Thread | [Next in Thread] |