From: Stefan Weil <sw@weilnetz.de>
To: qemu-devel@nongnu.org
Cc: Stefan Weil <sw@weilnetz.de>
Subject: [Qemu-devel] [PATCH 01/15] Remove macro HOST_LONG_SIZE
Date: Thu, 2 Feb 2012 22:12:43 +0100 [thread overview]
Message-ID: <1328217177-32745-2-git-send-email-sw@weilnetz.de> (raw)
In-Reply-To: <1328217177-32745-1-git-send-email-sw@weilnetz.de>
HOST_LONG_SIZE is simply the size of a pointer value.
There is no need for this macro.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
---
cpu-defs.h | 2 --
thunk.h | 4 ++--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/cpu-defs.h b/cpu-defs.h
index 57a709b..4527cbf 100644
--- a/cpu-defs.h
+++ b/cpu-defs.h
@@ -60,8 +60,6 @@ typedef uint64_t target_ulong __attribute__((aligned(TARGET_LONG_ALIGNMENT)));
#error TARGET_LONG_SIZE undefined
#endif
-#define HOST_LONG_SIZE (HOST_LONG_BITS / 8)
-
#define EXCP_INTERRUPT 0x10000 /* async interruption */
#define EXCP_HLT 0x10001 /* hlt instruction reached */
#define EXCP_DEBUG 0x10002 /* cpu stopped after a breakpoint or singlestep */
diff --git a/thunk.h b/thunk.h
index 109c541..9810743 100644
--- a/thunk.h
+++ b/thunk.h
@@ -99,7 +99,7 @@ static inline int thunk_type_size(const argtype *type_ptr, int is_host)
case TYPE_PTRVOID:
case TYPE_PTR:
if (is_host) {
- return HOST_LONG_SIZE;
+ return sizeof(void *);
} else {
return TARGET_ABI_BITS / 8;
}
@@ -136,7 +136,7 @@ static inline int thunk_type_align(const argtype *type_ptr, int is_host)
case TYPE_PTRVOID:
case TYPE_PTR:
if (is_host) {
- return HOST_LONG_SIZE;
+ return sizeof(void *);
} else {
return TARGET_ABI_BITS / 8;
}
--
1.7.7.3
next prev parent reply other threads:[~2012-02-02 21:13 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-02 21:12 [Qemu-devel] [PATCH 00/15] Clean some includes and definitions Stefan Weil
2012-02-02 21:12 ` Stefan Weil [this message]
2012-02-02 21:12 ` [Qemu-devel] [PATCH 02/15] target-alpha: Clean includes Stefan Weil
2012-02-02 21:12 ` [Qemu-devel] [PATCH 03/15] target-arm: " Stefan Weil
2012-02-02 23:22 ` Peter Maydell
2012-02-02 21:12 ` [Qemu-devel] [PATCH 04/15] target-cris: " Stefan Weil
2012-02-02 21:12 ` [Qemu-devel] [PATCH 05/15] target-i386: " Stefan Weil
2012-02-02 21:12 ` [Qemu-devel] [PATCH 06/15] target-lm32: " Stefan Weil
2012-02-04 14:50 ` Michael Walle
2012-02-02 21:12 ` [Qemu-devel] [PATCH 07/15] target-m68k: " Stefan Weil
2012-02-02 21:12 ` [Qemu-devel] [PATCH 08/15] target-microblaze: " Stefan Weil
2012-02-02 21:12 ` [Qemu-devel] [PATCH 09/15] target-mips: " Stefan Weil
2012-02-02 21:12 ` [Qemu-devel] [PATCH 10/15] target-ppc: " Stefan Weil
2012-02-02 21:26 ` Alexander Graf
2012-02-02 22:46 ` Stefan Weil
2012-02-02 22:51 ` Alexander Graf
2012-02-02 21:12 ` [Qemu-devel] [PATCH 11/15] target-s390x: " Stefan Weil
2012-02-02 21:12 ` [Qemu-devel] [PATCH 12/15] target-sh4: " Stefan Weil
2012-02-02 21:12 ` [Qemu-devel] [PATCH 13/15] target-unicore32: " Stefan Weil
2012-02-02 21:12 ` [Qemu-devel] [PATCH 14/15] target-xtensa: " Stefan Weil
2012-02-02 21:30 ` Max Filippov
2012-02-02 21:12 ` [Qemu-devel] [PATCH 15/15] Move definition of HOST_LONG_BITS to qemu-common.h Stefan Weil
-- strict thread matches above, loose matches on Subject: below --
2012-02-28 21:47 [Qemu-devel] [PULL] Patch queue Stefan Weil
2012-02-28 21:47 ` [Qemu-devel] [PATCH 01/15] Remove macro HOST_LONG_SIZE Stefan Weil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1328217177-32745-2-git-send-email-sw@weilnetz.de \
--to=sw@weilnetz.de \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).