From: Antony Pavlov <antonynpavlov@gmail.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: "Alex Dumitrache" <broscutamaker@gmail.com>,
"Peter Crosthwaite" <peter.crosthwaite@xilinx.com>,
"Giovanni Condello" <condellog@gmail.com>,
g3gg0 <georg.hofstetter@lx-networking.de>,
"QEMU Developers" <qemu-devel@nongnu.org>,
"Georg Hofstetter" <qemu@g3gg0.de>,
"Paul Brook" <paul@codesourcery.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Andreas Färber" <afaerber@suse.de>
Subject: Re: [Qemu-devel] [RFC v5 2/5] hw/arm/digic: prepare DIGIC-based boards support
Date: Thu, 5 Dec 2013 01:20:12 +0400 [thread overview]
Message-ID: <20131205012012.9525291b4909770920572ea2@gmail.com> (raw)
In-Reply-To: <CAFEAcA_1DwhJObSQqZ5uFQ-4DLosJ_2HZ98RwHP+-rOYLjQKmw@mail.gmail.com>
On Wed, 4 Dec 2013 20:29:05 +0000
Peter Maydell <peter.maydell@linaro.org> wrote:
> On 4 December 2013 20:22, Antony Pavlov <antonynpavlov@gmail.com> wrote:
> > Here is my proposition:
> >
> > 1. qemu board code setup CPU to start from 0xFFFF0000. (0xffff0000 is a ROM address
> > on DIGIC chips)
>
> Sort of. What we need is:
> 1a. Add a "hivecs" property to the ARM CPU object (which
> just sets env->cp15.c1_sys bit 13)
>
> (this is about half a dozen lines of code max)
>
> 1b DIGIC board init code creates the CPU and sets the hivecs property on it
>
> (another handful of lines of code)
Ok, I'll try to make the work at the weekend.
> > 2. we need somehow put a 'jump-to-beginning-of-ROM' instruction to 0xffff0000.
> > (We can't put barebox to 0xffff0000 as barebox image is bigger that 64K.)
> >
> > There is at least two possibilities to do so:
> > * we can use specially prepared ROM image;
> > * qemu board code can insert by itself a 'jump-to-beginning-of-ROM' instruction
> > after loading ROM image (as qemu MIPS Malta board code does).
>
> The board code should definitely not be writing random instructions into
> memory. You need to provide a ROM image which will do the work.
>
> > 3. CPU starts as usual. Branching to barebox code in ROM happends in a natural way!
>
> This bit's OK :-)
>
> thanks
> -- PMM
--
--
Best regards,
Antony Pavlov
next prev parent reply other threads:[~2013-12-04 21:13 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-07 7:04 [Qemu-devel] [RFC v5 0/5] hw/arm: add initial support for Canon DIGIC SoC Antony Pavlov
2013-09-07 7:04 ` [Qemu-devel] [RFC v5 1/5] hw/arm: add very " Antony Pavlov
2013-09-13 14:48 ` Andreas Färber
2013-09-07 7:04 ` [Qemu-devel] [RFC v5 2/5] hw/arm/digic: prepare DIGIC-based boards support Antony Pavlov
2013-10-17 18:01 ` Peter Maydell
2013-10-17 18:51 ` Georg Hofstetter
2013-10-17 19:17 ` Peter Maydell
2013-10-20 0:13 ` Georg Hofstetter
2013-10-22 11:26 ` Antony Pavlov
2013-12-04 20:22 ` Antony Pavlov
2013-12-04 20:29 ` Peter Maydell
2013-12-04 21:20 ` Antony Pavlov [this message]
2013-12-04 21:34 ` Peter Maydell
2013-12-05 0:20 ` Peter Crosthwaite
2013-12-05 8:02 ` Peter Maydell
2013-12-05 0:25 ` Peter Crosthwaite
2013-12-05 7:59 ` Peter Maydell
2013-12-07 0:55 ` [Qemu-devel] [RFC 0/2] ARM: make possible to use high vectors for reset exception Antony Pavlov
2013-12-07 0:55 ` [Qemu-devel] [RFC 1/2] ARM: cpu: add "hivecs" property (high vectors on reset) Antony Pavlov
2013-12-07 1:00 ` Peter Crosthwaite
2013-12-07 20:44 ` Antony Pavlov
2013-12-07 22:14 ` Peter Crosthwaite
2013-12-07 1:14 ` Peter Maydell
2013-12-07 0:55 ` [Qemu-devel] [RFC 2/2] ARM: arm_cpu_reset: make possible to use high vectors for reset_exc Antony Pavlov
2013-12-07 1:08 ` Peter Crosthwaite
2013-12-07 20:49 ` Antony Pavlov
2013-12-07 21:03 ` Peter Maydell
2013-09-07 7:04 ` [Qemu-devel] [RFC v5 3/5] hw/arm/digic: add timer support Antony Pavlov
2013-10-17 17:51 ` Peter Maydell
2013-09-07 7:04 ` [Qemu-devel] [RFC v5 4/5] hw/arm/digic: add UART support Antony Pavlov
2013-10-17 17:54 ` Peter Maydell
2013-10-22 10:48 ` Antony Pavlov
2013-09-07 7:04 ` [Qemu-devel] [RFC v5 5/5] hw/arm/digic: add NOR ROM support Antony Pavlov
2013-10-17 18:00 ` Peter Maydell
2013-09-13 14:37 ` [Qemu-devel] [RFC v5 0/5] hw/arm: add initial support for Canon DIGIC SoC Antony Pavlov
2013-09-20 9:01 ` [Qemu-devel] [RFC v5 0/5] hw/arm: add initial support for Canon DIGIC SoC: ping-ping Antony Pavlov
2013-09-28 10:41 ` [Qemu-devel] [RFC v5 0/5] hw/arm: add initial support for Canon DIGIC SoC: ping-ping-ping Antony Pavlov
2013-09-28 10:50 ` Peter Maydell
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=20131205012012.9525291b4909770920572ea2@gmail.com \
--to=antonynpavlov@gmail.com \
--cc=afaerber@suse.de \
--cc=broscutamaker@gmail.com \
--cc=condellog@gmail.com \
--cc=georg.hofstetter@lx-networking.de \
--cc=paul@codesourcery.com \
--cc=pbonzini@redhat.com \
--cc=peter.crosthwaite@xilinx.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu@g3gg0.de \
/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.