From patchwork Thu Oct 10 17:52:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 834167 Delivered-To: patch@linaro.org Received: by 2002:adf:b352:0:b0:37d:45d0:187 with SMTP id k18csp432330wrd; Thu, 10 Oct 2024 10:53:26 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXAxTLWqa4ezFQIqi+KbAqtWkTKk5cXXYFJOEuQKQEzPPO3IIjPLyFAk41j4yfcsTu2ZwnbQQ==@linaro.org X-Google-Smtp-Source: AGHT+IG3IxC3EYgDESknWNsjiKkkYIUgYVAJwLb7rSQGyJSlUciGEZuV+18r1s8nTCjzzO14BM/b X-Received: by 2002:a05:6102:3a0f:b0:4a3:a35c:3edc with SMTP id ada2fe7eead31-4a4637e1dcamr261436137.8.1728582806627; Thu, 10 Oct 2024 10:53:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1728582806; cv=none; d=google.com; s=arc-20240605; b=SuuwzAX8CfBuJZEm8bzpseyNi+E0CInMJ6Enrip/mhe7YkjKv4/dLrQbQkbhSt4Uox ALAmgev27pILiUWqerZvrOkkMlDiEnd7BFiueuRVPZtkqw615Ed3fyg7UoRnuUYyUuje tzhK9zKwpW9S5ACeeF0w7GWBwH7FscPWkEsMXdK/ysoMtbIDzST2UPmWmYG1kvyseekD NHv3Q+qd990ooGk956kIHVTWmmwh3NlBSmV6C+bni634xic2pRXrSwTBUdbsKKunuBID 7fEM9Nf16mnS+LSw7I4pwS/iroQav6IUZ6GqFqVquawHc3ozfBDa1Ll9mB6KDu4aUJ/s mlgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=i5NiMMM7LPvrXfhCGuaMN/pJhmT1Ybuu5mX8F9LLrXQ=; fh=u4Lic6/kJf17L4Ow4Z4hUY5/z1mrGNkuBXpXak68fJM=; b=golNL6GLbduCG9fDAYLwQZZ/61366om7e1f0WNPc6W+7lFdeSCGgtPAw+d5h0SdnLH Jgo/qy+/IZFXCdKSuVpt+E+gGwwN4JRRIxJ4FzzQjopPX8sAI9m+TwYssaw41vd23pwe g9siYrsjt3v+Jm2SP7ej06PCfXPbMN/uu1HqkBOf2+wCBp+iaSjyEYOy6MlPMpZWeLSS IT6BrzRF9LmZqLQoty/qpAQipRxh0SfOUoscFHK9G6rV3E03xL3PUOo90wUxLdRxh9Gr Z4dghNTdHfz2TLhWLfUyOcpS39md31yAjNtI3vLNTTqzcRg4D1WfQB8Ay2fb+KKy+VD1 hQvw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bRFMaUwK; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-460469db596si10977601cf.212.2024.10.10.10.53.26 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 Oct 2024 10:53:26 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bRFMaUwK; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1syxLT-00087Z-AP; Thu, 10 Oct 2024 13:53:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1syxLR-00086z-Ld for qemu-devel@nongnu.org; Thu, 10 Oct 2024 13:53:01 -0400 Received: from mail-io1-xd36.google.com ([2607:f8b0:4864:20::d36]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1syxLQ-00069g-9P for qemu-devel@nongnu.org; Thu, 10 Oct 2024 13:53:01 -0400 Received: by mail-io1-xd36.google.com with SMTP id ca18e2360f4ac-8354d853f91so34231939f.0 for ; Thu, 10 Oct 2024 10:52:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1728582779; x=1729187579; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=i5NiMMM7LPvrXfhCGuaMN/pJhmT1Ybuu5mX8F9LLrXQ=; b=bRFMaUwK4fq9cchfgRxR6Ae1Ng6KLl1KLc0tkApBHkLoN+kSZI/LUiKEih7qreqHJq 9Cv9wIxvhYHfRmViaEu/JEc0ZvjgCj+gVjevlhufiCwS6s+VgtdMnlinWtucap1TpvQC wknwKe/7PVu75sxM034q1GqzAKIJPel/O1RUM1qNHk4E39b7coNaN1U8+fvURlYqHlHD EisRBpt39+aOnjVcHMirBuuLwlqVA7ANHmPYCxOllZ8usJhT7tJYlsEIqw6b7t9zUNg/ jRy+sV/3F0XmhGLjXd2W8D/pHfb0yILUAvPbb+H9hWbwR+644E3wKocbWLmEjmT8PNzk ZguA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728582779; x=1729187579; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=i5NiMMM7LPvrXfhCGuaMN/pJhmT1Ybuu5mX8F9LLrXQ=; b=ij1/e0+6L9t1QL6kFYM9Xg5JMyEW6HDbpNvQDzbMApvdiAA5Pi+Z8z507ouvg0Rxxk ox346QNPlvI1yyI35MeXqnfh0mx+6Grd5LWyZt/sIA3fyts9Gk4W57BkTClfPEq1brCL AxD0U2uIDNoJmyKjE8TnuF8Nnqeb9MW0iTGX+799LjaE64zz//61xGe4+QFlS+eS9j0R 50DyR912D19O9FnAH4drnmiSIdhmKZpBJX5Ms3bcTCrkLZTdhZ186Qv46qq8dp2Wdfgt JnbUWTZz3ww5ciy6mdMoUdBDCcyzEIZ/x30mduNTDLlUvXv9YUF43lc8UrLTolCngOmC 9d8w== X-Gm-Message-State: AOJu0YyO+6wpLYCuKxCK/peZUokiNPjlhpi2+BlhlT7Iafu82S4FNEhN wA2RID2YffC3iHePSNG/ROTuR5LzfRLBl7HtNA7940X3v1ZMbi6eD6YxAFxSlwL+lrskmRHHRyO k X-Received: by 2002:a92:c544:0:b0:3a3:6b20:5e33 with SMTP id e9e14a558f8ab-3a3b51bca60mr3441285ab.12.1728582778659; Thu, 10 Oct 2024 10:52:58 -0700 (PDT) Received: from localhost.localdomain ([45.176.89.169]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7ea44909bd7sm1285679a12.50.2024.10.10.10.52.56 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 10 Oct 2024 10:52:58 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Pierrick Bouvier , Richard Henderson , =?utf-8?q?Alex_Benn=C3=A9?= =?utf-8?q?e?= , Thomas Huth Subject: [PATCH v3 1/2] exec/tswap: Massage target_needs_bswap() definition Date: Thu, 10 Oct 2024 14:52:45 -0300 Message-ID: <20241010175246.15779-2-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241010175246.15779-1-philmd@linaro.org> References: <20241010175246.15779-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::d36; envelope-from=philmd@linaro.org; helo=mail-io1-xd36.google.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Invert target_needs_bswap() comparison to match the COMPILING_PER_TARGET definition (2 lines upper). Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20241004162118.84570-2-philmd@linaro.org> Reviewed-by: Richard Henderson --- include/exec/tswap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/exec/tswap.h b/include/exec/tswap.h index b7a41913475..ecd4faef015 100644 --- a/include/exec/tswap.h +++ b/include/exec/tswap.h @@ -28,7 +28,7 @@ bool target_words_bigendian(void); #ifdef COMPILING_PER_TARGET #define target_needs_bswap() (HOST_BIG_ENDIAN != TARGET_BIG_ENDIAN) #else -#define target_needs_bswap() (target_words_bigendian() != HOST_BIG_ENDIAN) +#define target_needs_bswap() (HOST_BIG_ENDIAN != target_words_bigendian()) #endif /* COMPILING_PER_TARGET */ static inline uint16_t tswap16(uint16_t s) From patchwork Thu Oct 10 17:52:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 834166 Delivered-To: patch@linaro.org Received: by 2002:adf:b352:0:b0:37d:45d0:187 with SMTP id k18csp432327wrd; Thu, 10 Oct 2024 10:53:26 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXaOYLWXGBj0EkoasIEyHeVOnH5ofN0p4e0X5sFwqY/WtCYlwhVGm5I335LGKZ3/HcP6FZayg==@linaro.org X-Google-Smtp-Source: AGHT+IFiOU1hhDhGYSmQOQMrJDrhIP5D//Ae8dnlkw5SL1X6f0hmTZNw8G55AJnvOJ2r19qist+0 X-Received: by 2002:a05:6902:c07:b0:e28:f0e5:380b with SMTP id 3f1490d57ef6-e28fe3d0ff3mr7055977276.4.1728582806516; Thu, 10 Oct 2024 10:53:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1728582806; cv=none; d=google.com; s=arc-20240605; b=DVfiqDMkFiC5PiE1/KV+rGqQnRSauT634VJZfIDk+UYHq9bDd8Ft5ISO5MfSNOq2Pm phkQs0E7sEdoF7aWoxmEHtvTHvZxD5yHMu3LgZXWhfhBalzkQsLdvE+w2cxXjbbAR6hn 5HkLIvZe5C+nA6C05yxZ/h/6ntWSYG9Uk3BFCzcUNXXvdHYdDSPD9RoBLszcG756FhK6 khOpoZYVG2CQUE0q2C0i7mDd9OWvk8iA+SDhKJrnEnzNifkqtnkdurYLCWjVSVnGRYHZ fJSFIMcO504owxORe/HhWuaFlBOA3yd3Iw3rBFgjJ5sYM8M1QydmtxOblHPTQO566zhb s8hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=cfkygRXpawl3aiNihHO54bIZT5dFbF68heyJhlSC/TE=; fh=u4Lic6/kJf17L4Ow4Z4hUY5/z1mrGNkuBXpXak68fJM=; b=lXv7dIpyl5G2Tubf4QIcrWI7toOUHXisWrsPCo1T54Geire/2Y23qNLKQLlBspo705 HxmwPvg0LHWB8qc2M7B1+rZG7EcVGnWO7JI5rbaPMnGfh4fb5MV6bPl7Sn/l6S/a3+8+ Sd3q6rW87PbsZ4YKyfAYW+1y9s+WbptQ/ZX061mjy7y7bPZeeaItC0uTKFJgozjM6K9K uiBQMiFHbP2aqZpEnfqrL7gMGWLFxR3VmZgUCi3tRSnxprFKC7QcqTJNhMPUWE6p5fBy Qv1aR5aQ+uk/usvIXEXUgtUBP8+jK9fWQ+0zN6g7xZaTngn+3nb0o5V8GrG31Y/ziXjV 9IuQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F9Ejxndn; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7b1149c5b6dsi188678985a.672.2024.10.10.10.53.26 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 Oct 2024 10:53:26 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F9Ejxndn; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1syxLa-00089b-Sp; Thu, 10 Oct 2024 13:53:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1syxLZ-00089K-CV for qemu-devel@nongnu.org; Thu, 10 Oct 2024 13:53:09 -0400 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1syxLY-0006AB-06 for qemu-devel@nongnu.org; Thu, 10 Oct 2024 13:53:09 -0400 Received: by mail-pj1-x102f.google.com with SMTP id 98e67ed59e1d1-2e2ed2230d8so119320a91.0 for ; Thu, 10 Oct 2024 10:53:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1728582786; x=1729187586; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=cfkygRXpawl3aiNihHO54bIZT5dFbF68heyJhlSC/TE=; b=F9EjxndnJv7I7YGM45y9CmiCLRcWqH4uVf1RFxcVOE4zvlE4LSWa3n/Q35RWXt7oKG 7jxetgYnbF9F6wi9OCRQ8Jn4NYMDGGiJlclyTecBXZ6+EQgS6gCW1GkGClZjItEBwfZ0 RWW0HcNwzLw3dfGx2kTC0NegCkDcjJ3oyiLxoGo/PhvKTe3bg4W46yqA8iw0pm6zAEf0 lDX9v60j2alXwPXSMp/nft1P607LgLsw+5SLiTvpXBAHBScJLbS7lOH9XaTLn2gFIrTL OrQC2sG4sgb3GlReZfcLomQbeEETHn84yVcG297TyUXFTqSSb8gvbp4yibnk9DFhZPLM Zwtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728582786; x=1729187586; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cfkygRXpawl3aiNihHO54bIZT5dFbF68heyJhlSC/TE=; b=ul+kltywgPtZj38oLxLmy0bmFc/ODrOc9mmUwrJzSa/fgUyVIAhWQq0FD09rtL26CS U0thAT3xUH5qt6YB2m9qZ/5LFt/Fqa5JlPxS2bhw1RhAYTDmL30BCw0CBquiRurPEo8r cPNOOqObGHrGbf9RzWLbaBthbVJY/KVbN6R2gaYSyROEX5ibbyJoClBlSHDjxZIcx0yu K40qHopCxtupgXu/ieUCfm+bZFfJs08oMQZJInMcG2ZUsc3ZO4yqQX8Jo6BqqejYBeMa M+1P6bGImgO1IY9alxZeNgez6hKzIV63zi0lwCCRg+HCe/5V+FdsduOPhLoMWNSQqC1S NT/g== X-Gm-Message-State: AOJu0YyjoCuGPGkDuQ0KQuOsnt6UXPI7DPfUdHX0Br4zg+QYzfPZlz4/ e1z/Ry3WKQTIUnK2+PLqFK8L1P02rRaxwqI/B7q7TIUyNB958mGrgzkjGysU1xh81ZWQvLxZdgl 7 X-Received: by 2002:a17:90b:f04:b0:2c8:647:1600 with SMTP id 98e67ed59e1d1-2e2a2320c28mr7978063a91.9.1728582786331; Thu, 10 Oct 2024 10:53:06 -0700 (PDT) Received: from localhost.localdomain ([45.176.89.169]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e2a5aacf3csm3919559a91.41.2024.10.10.10.53.04 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 10 Oct 2024 10:53:05 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Pierrick Bouvier , Richard Henderson , =?utf-8?q?Alex_Benn=C3=A9?= =?utf-8?q?e?= , Thomas Huth Subject: [PATCH v3 2/2] gdbstub/helpers: Introduce ldtul_$endian_p() helpers Date: Thu, 10 Oct 2024 14:52:46 -0300 Message-ID: <20241010175246.15779-3-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241010175246.15779-1-philmd@linaro.org> References: <20241010175246.15779-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::102f; envelope-from=philmd@linaro.org; helo=mail-pj1-x102f.google.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Introduce ldtul_le_p() and ldtul_be_p() to use directly in place of ldtul_p() when a target endianness is fixed. Signed-off-by: Philippe Mathieu-Daudé Acked-by: Alex Bennée Reviewed-by: Richard Henderson --- include/gdbstub/helpers.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/gdbstub/helpers.h b/include/gdbstub/helpers.h index 26140ef1ac0..6f7cc48adcb 100644 --- a/include/gdbstub/helpers.h +++ b/include/gdbstub/helpers.h @@ -95,9 +95,13 @@ static inline uint8_t *gdb_get_reg_ptr(GByteArray *buf, int len) #if TARGET_LONG_BITS == 64 #define gdb_get_regl(buf, val) gdb_get_reg64(buf, val) #define ldtul_p(addr) ldq_p(addr) +#define ldtul_le_p(addr) ldq_le_p(addr) +#define ldtul_be_p(addr) ldq_be_p(addr) #else #define gdb_get_regl(buf, val) gdb_get_reg32(buf, val) #define ldtul_p(addr) ldl_p(addr) +#define ldtul_le_p(addr) ldl_le_p(addr) +#define ldtul_be_p(addr) ldl_be_p(addr) #endif #endif /* _GDBSTUB_HELPERS_H_ */