All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: Tobias Klauser <tklauser@distanz.ch>,
	Juro Bystricky <juro.bystricky@intel.com>
Cc: qemu-devel@nongnu.org, crwulff@gmail.com,
	jurobystricky@hotmail.com, fred.konrad@greensocs.com
Subject: Re: [Qemu-devel] [PATCH v6] nios2: Add Altera JTAG UART emulation
Date: Fri, 17 Mar 2017 22:08:30 +0100	[thread overview]
Message-ID: <769ad321-898d-3421-98a7-36b1c64efbaa@denx.de> (raw)
In-Reply-To: <20170314135605.GG4142@distanz.ch>

On 03/14/2017 02:56 PM, Tobias Klauser wrote:
> On 2017-02-13 at 01:56:43 +0100, Juro Bystricky <juro.bystricky@intel.com> wrote:
>> Add the Altera JTAG UART model.
>>
>> Hardware emulation based on:
>> https://www.altera.com/en_US/pdfs/literature/ug/ug_embedded_ip.pdf
>> (Please see "Register Map" on page 65)
>>
>> Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
> 
> After instantiating an Altera UART in nios2_10m50_ghrd_init
> (hw/nios2/10m50_devboard.c) using the following:
> 
>     altera_juart_create(1, 0xf8001530, irq[7], 64);
> 
> and adjusting the use of VMSTATE_VBUFFER_UINT32() to omit the _start argument
> (see below), I was able to successfully boot Linux with console on Altera JTAG
> UART with "qemu-system-nios2 -M 10m50-ghrd" using this patch.
> 
> Feel free to add my
> 
> Tested-by: Tobias Klauser <tklauser@distanz.ch>
> 
>> diff --git a/hw/char/altera_juart.c b/hw/char/altera_juart.c
> [...]
>> +static const VMStateDescription vmstate_altera_juart = {
>> +    .name = "altera-juart" ,
>> +    .version_id = 1,
>> +    .minimum_version_id = 1,
>> +    .fields = (VMStateField[]) {
>> +        VMSTATE_UINT32(jdata, AlteraJUARTState),
>> +        VMSTATE_UINT32(jcontrol, AlteraJUARTState),
>> +        VMSTATE_VBUFFER_UINT32(rx_fifo, AlteraJUARTState, 1, NULL, 0, rx_fifo_size),
> 
> This should now be
> 
>         VMSTATE_VBUFFER_UINT32(rx_fifo, AlteraJUARTState, 1, NULL, rx_fifo_size),
> 
> due to commit 59046ec29ad4 ("migration: consolidate VMStateField.start")
> getting rid of the _start macro argument.
> 
Cool, thanks for checking. Can we get a V7 ?

-- 
Best regards,
Marek Vasut

      reply	other threads:[~2017-03-17 21:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-13  0:56 [Qemu-devel] [PATCH v6] nios2: Add Altera JTAG UART emulation Juro Bystricky
2017-02-13 15:57 ` Marek Vasut
2017-03-14 13:56 ` Tobias Klauser
2017-03-17 21:08   ` Marek Vasut [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=769ad321-898d-3421-98a7-36b1c64efbaa@denx.de \
    --to=marex@denx.de \
    --cc=crwulff@gmail.com \
    --cc=fred.konrad@greensocs.com \
    --cc=juro.bystricky@intel.com \
    --cc=jurobystricky@hotmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=tklauser@distanz.ch \
    /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.