From: Blue Swirl <blauwirbel@gmail.com>
To: qemu-devel <qemu-devel@nongnu.org>
Subject: [Qemu-devel] [PATCH 6/9] cpu-exec: unify do_interrupt call
Date: Sun, 22 May 2011 14:13:39 +0300 [thread overview]
Message-ID: <BANLkTinrjFqREGhzvE4oK_6qCkh9CqR+eA@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1477 bytes --]
Now that all targets use common function signature for do_interrupt(),
there is no
need for the #ifdeffery anymore.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
---
cpu-exec.c | 26 --------------------------
1 files changed, 0 insertions(+), 26 deletions(-)
diff --git a/cpu-exec.c b/cpu-exec.c
index 4aa75fd..dd4f5f5 100644
--- a/cpu-exec.c
+++ b/cpu-exec.c
@@ -272,33 +272,7 @@ int cpu_exec(CPUState *env1)
ret = env->exception_index;
break;
#else
-#if defined(TARGET_I386)
- do_interrupt(env);
-#elif defined(TARGET_PPC)
- do_interrupt(env);
-#elif defined(TARGET_LM32)
- do_interrupt(env);
-#elif defined(TARGET_MICROBLAZE)
- do_interrupt(env);
-#elif defined(TARGET_MIPS)
- do_interrupt(env);
-#elif defined(TARGET_SPARC)
- do_interrupt(env);
-#elif defined(TARGET_ARM)
do_interrupt(env);
-#elif defined(TARGET_UNICORE32)
- do_interrupt(env);
-#elif defined(TARGET_SH4)
- do_interrupt(env);
-#elif defined(TARGET_ALPHA)
- do_interrupt(env);
-#elif defined(TARGET_CRIS)
- do_interrupt(env);
-#elif defined(TARGET_M68K)
- do_interrupt(env);
-#elif defined(TARGET_S390X)
- do_interrupt(env);
-#endif
env->exception_index = -1;
#endif
}
--
1.6.2.4
[-- Attachment #2: 0006-cpu-exec-unify-do_interrupt-call.patch --]
[-- Type: text/x-diff, Size: 1957 bytes --]
From ce91ff4b4e8ee9fd7b4bd8e66424a2ea65dbad5b Mon Sep 17 00:00:00 2001
Message-Id: <ce91ff4b4e8ee9fd7b4bd8e66424a2ea65dbad5b.1306062376.git.blauwirbel@gmail.com>
In-Reply-To: <c887cc861a8a531b636c0acae1e054a3861ad15a.1306062376.git.blauwirbel@gmail.com>
References: <c887cc861a8a531b636c0acae1e054a3861ad15a.1306062376.git.blauwirbel@gmail.com>
From: Blue Swirl <blauwirbel@gmail.com>
Date: Sat, 21 May 2011 08:17:08 +0000
Subject: [PATCH 6/9] cpu-exec: unify do_interrupt call
Now that all targets use common function signature for do_interrupt(), there is no
need for the #ifdeffery anymore.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
---
cpu-exec.c | 26 --------------------------
1 files changed, 0 insertions(+), 26 deletions(-)
diff --git a/cpu-exec.c b/cpu-exec.c
index 4aa75fd..dd4f5f5 100644
--- a/cpu-exec.c
+++ b/cpu-exec.c
@@ -272,33 +272,7 @@ int cpu_exec(CPUState *env1)
ret = env->exception_index;
break;
#else
-#if defined(TARGET_I386)
- do_interrupt(env);
-#elif defined(TARGET_PPC)
- do_interrupt(env);
-#elif defined(TARGET_LM32)
- do_interrupt(env);
-#elif defined(TARGET_MICROBLAZE)
- do_interrupt(env);
-#elif defined(TARGET_MIPS)
- do_interrupt(env);
-#elif defined(TARGET_SPARC)
- do_interrupt(env);
-#elif defined(TARGET_ARM)
do_interrupt(env);
-#elif defined(TARGET_UNICORE32)
- do_interrupt(env);
-#elif defined(TARGET_SH4)
- do_interrupt(env);
-#elif defined(TARGET_ALPHA)
- do_interrupt(env);
-#elif defined(TARGET_CRIS)
- do_interrupt(env);
-#elif defined(TARGET_M68K)
- do_interrupt(env);
-#elif defined(TARGET_S390X)
- do_interrupt(env);
-#endif
env->exception_index = -1;
#endif
}
--
1.7.2.5
next reply other threads:[~2011-05-22 11:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-22 11:13 Blue Swirl [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-06-19 21:00 [Qemu-devel] [PATCH 6/9] cpu-exec: unify do_interrupt call 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=BANLkTinrjFqREGhzvE4oK_6qCkh9CqR+eA@mail.gmail.com \
--to=blauwirbel@gmail.com \
--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).