From: "Alex Bennée" <alex.bennee@linaro.org>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-devel@nongnu.org, patches@linaro.org
Subject: Re: [Qemu-devel] [PATCH 3/3] stellaris: Use the 'unimplemented' device for parts we don't implement
Date: Fri, 27 Jan 2017 14:45:39 +0000 [thread overview]
Message-ID: <87tw8k8sto.fsf@linaro.org> (raw)
In-Reply-To: <1484247815-15279-4-git-send-email-peter.maydell@linaro.org>
Peter Maydell <peter.maydell@linaro.org> writes:
> Use the 'unimplemented' dummy device to cover regions of the
> SoC device memory map which we don't have proper device
> implementations for yet.
>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Looks good although I couldn't find any Stellaris images to test with so
I take the actual behaviour on trust ;-)
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
> ---
> hw/arm/stellaris.c | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
>
> diff --git a/hw/arm/stellaris.c b/hw/arm/stellaris.c
> index 204502a..1f51e2b 100644
> --- a/hw/arm/stellaris.c
> +++ b/hw/arm/stellaris.c
> @@ -21,6 +21,7 @@
> #include "exec/address-spaces.h"
> #include "sysemu/sysemu.h"
> #include "hw/char/pl011.h"
> +#include "hw/misc/unimp.h"
>
> #define GPIO_A 0
> #define GPIO_B 1
> @@ -1401,6 +1402,19 @@ static void stellaris_init(const char *kernel_filename, const char *cpu_model,
> }
> }
> }
> +
> + /* Add dummy regions for the devices we don't implement yet,
> + * so guest accesses don't cause unlogged crashes.
> + */
> + create_unimplemented_device("wdtimer", 0x40000000, 0x1000);
> + create_unimplemented_device("i2c-0", 0x40002000, 0x1000);
> + create_unimplemented_device("i2c-2", 0x40021000, 0x1000);
> + create_unimplemented_device("PWM", 0x40028000, 0x1000);
> + create_unimplemented_device("QEI-0", 0x4002c000, 0x1000);
> + create_unimplemented_device("QEI-1", 0x4002d000, 0x1000);
> + create_unimplemented_device("analogue-comparator", 0x4003c000, 0x1000);
> + create_unimplemented_device("hibernation", 0x400fc000, 0x1000);
> + create_unimplemented_device("flash-control", 0x400fd000, 0x1000);
> }
>
> /* FIXME: Figure out how to generate these from stellaris_boards. */
--
Alex Bennée
prev parent reply other threads:[~2017-01-27 14:45 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-12 19:03 [Qemu-devel] [PATCH 0/3] "unimplemented" device for debug logging Peter Maydell
2017-01-12 19:03 ` [Qemu-devel] [PATCH 1/3] stellaris: Document memory map and which SoC devices are unimplemented Peter Maydell
2017-01-27 14:11 ` Alex Bennée
2017-01-27 14:17 ` Peter Maydell
2017-02-07 17:38 ` Peter Maydell
2017-01-12 19:03 ` [Qemu-devel] [PATCH 2/3] hw/misc: New "unimplemented" sysbus device Peter Maydell
2017-01-27 14:33 ` Alex Bennée
2017-01-27 14:45 ` Peter Maydell
2017-01-12 19:03 ` [Qemu-devel] [PATCH 3/3] stellaris: Use the 'unimplemented' device for parts we don't implement Peter Maydell
2017-01-27 14:45 ` Alex Bennée [this message]
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=87tw8k8sto.fsf@linaro.org \
--to=alex.bennee@linaro.org \
--cc=patches@linaro.org \
--cc=peter.maydell@linaro.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.