From: Stefan Weil <sw@weilnetz.de>
To: qemu-devel@nongnu.org
Cc: Stefan Weil <sw@weilnetz.de>
Subject: [Qemu-devel] [PATCH 3/6] w64: Fix data type of parameters for flush_icache_range
Date: Fri, 2 Mar 2012 23:30:04 +0100 [thread overview]
Message-ID: <1330727407-24014-4-git-send-email-sw@weilnetz.de> (raw)
In-Reply-To: <1330727407-24014-1-git-send-email-sw@weilnetz.de>
flush_icache_range takes two address parameters which must be large
enough to address any address of the host.
For hosts with sizeof(unsigned long) == sizeof(void *), this patch
changes nothing. All currently supported hosts fall into this category.
For w64 hosts, sizeof(unsigned long) is 4 while sizeof(void *) is 8,
so the use of tcg_target_ulong is needed for i386 and tci (the tcg
targets which work with w64).
Signed-off-by: Stefan Weil <sw@weilnetz.de>
---
tcg/i386/tcg-target.h | 3 ++-
tcg/tci/tcg-target.h | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/tcg/i386/tcg-target.h b/tcg/i386/tcg-target.h
index adbb036..c3cfe05 100644
--- a/tcg/i386/tcg-target.h
+++ b/tcg/i386/tcg-target.h
@@ -123,6 +123,7 @@ typedef enum {
# define TCG_AREG0 TCG_REG_EBP
#endif
-static inline void flush_icache_range(unsigned long start, unsigned long stop)
+static inline void flush_icache_range(tcg_target_ulong start,
+ tcg_target_ulong stop)
{
}
diff --git a/tcg/tci/tcg-target.h b/tcg/tci/tcg-target.h
index 03e0fd1..81fcc0f 100644
--- a/tcg/tci/tcg-target.h
+++ b/tcg/tci/tcg-target.h
@@ -157,7 +157,8 @@ void tci_disas(uint8_t opc);
unsigned long tcg_qemu_tb_exec(CPUState *env, uint8_t *tb_ptr);
#define tcg_qemu_tb_exec tcg_qemu_tb_exec
-static inline void flush_icache_range(unsigned long start, unsigned long stop)
+static inline void flush_icache_range(tcg_target_ulong start,
+ tcg_target_ulong stop)
{
}
--
1.7.9
next prev parent reply other threads:[~2012-03-02 22:30 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-02 22:30 [Qemu-devel] [PATCH 0/6] w64: Improve compilation with MinGW-w64 Stefan Weil
2012-03-02 22:30 ` [Qemu-devel] [PATCH 1/6] w64: Fix size of ram_addr_t Stefan Weil
2012-03-02 22:30 ` [Qemu-devel] [PATCH 2/6] tcg: Rearrange definitions and include statements Stefan Weil
2012-03-02 22:30 ` Stefan Weil [this message]
2012-03-02 22:30 ` [Qemu-devel] [PATCH 4/6] w64: Change data type of parameters for flush_icache_range Stefan Weil
2012-03-02 22:30 ` [Qemu-devel] [PATCH 5/6] cache-utils: " Stefan Weil
2012-03-02 22:39 ` Alexander Graf
2012-03-05 18:57 ` Alexander Graf
2012-03-05 20:07 ` Stefan Weil
2012-03-05 20:15 ` Alexander Graf
2012-03-05 20:15 ` [Qemu-devel] [PATCH] cache-utils: Add missing include file for uintptr_t Stefan Weil
2012-03-06 23:51 ` Alexander Graf
2012-03-11 16:08 ` Blue Swirl
2012-03-02 22:30 ` [Qemu-devel] [PATCH 6/6] w64: fix type casts when calling flush_icache_range Stefan Weil
2012-03-04 11:27 ` [Qemu-devel] [PATCH 0/6] w64: Improve compilation with MinGW-w64 Blue Swirl
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=1330727407-24014-4-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).