qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Igor Mammedov <imammedo@redhat.com>
To: Michael Rolnik <mrolnik@gmail.com>
Cc: Sarah Harris <S.E.Harris@kent.ac.uk>,
	Richard Henderson <richard.henderson@linaro.org>,
	QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH v24 1/7] target/avr: Add outward facing interfaces and core CPU logic
Date: Tue, 2 Jul 2019 10:47:48 +0200	[thread overview]
Message-ID: <20190702104748.332bc714@redhat.com> (raw)
In-Reply-To: <CAK4993hAJS5vyF7LpL7MNaiw8f+ca6Ust=dQ2suQm84Hma+yLw@mail.gmail.com>

On Mon, 1 Jul 2019 06:59:39 -0700
Michael Rolnik <mrolnik@gmail.com> wrote:

> should I use *-avr-cpu* suffix or can I do without it. i.e. *xyz* instead
> of *xyz-avr-cpu*
I think our convention for cpu types is:
  foo-target-cpu
suffix. So I'd use *-avr-cpu form.
Yes it will be a bit verbose on CLI but it really doesn't matter as
there aren't any preexisting users that used short 'cpu model' form.

> 
> On Mon, Jul 1, 2019 at 2:08 AM Igor Mammedov <imammedo@redhat.com> wrote:
> 
> > On Fri, 28 Jun 2019 18:54:27 +0300
> > Michael Rolnik <mrolnik@gmail.com> wrote:
> >  
> > > Igor.
> > >
> > > so avr6 instead of a6-avr-cpu, xmega2 instead of xmega2-avr-cpu and so  
> > on,  
> > > right?  
> > (it would be better if question was rith under context that prompted it)
> > [...]
> >  
> > > > > +++ b/target/avr/cpu.h
> > > > > @@ -0,0 +1,283 @@
> > > > > +/*
> > > > > + * QEMU AVR CPU
> > > > > + *
> > > > > + * Copyright (c) 2016 Michael Rolnik
> > > > > + *
> > > > > + * This library is free software; you can redistribute it and/or
> > > > > + * modify it under the terms of the GNU Lesser General Public
> > > > > + * License as published by the Free Software Foundation; either
> > > > > + * version 2.1 of the License, or (at your option) any later  
> > version.  
> > > > > + *
> > > > > + * This library is distributed in the hope that it will be useful,
> > > > > + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> > > > > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
> > > > > + * Lesser General Public License for more details.
> > > > > + *
> > > > > + * You should have received a copy of the GNU Lesser General Public
> > > > > + * License along with this library; if not, see
> > > > > + * <http://www.gnu.org/licenses/lgpl-2.1.html>
> > > > > + */
> > > > > +
> > > > > +#ifndef CPU_AVR_H
> > > > > +#define CPU_AVR_H
> > > > > +
> > > > > +#include "qemu-common.h"
> > > > > +#include "qom/cpu.h"
> > > > > +#include "exec/cpu-defs.h"
> > > > > +#include "fpu/softfloat.h"
> > > > > +
> > > > > +#define TCG_GUEST_DEFAULT_MO 0
> > > > > +
> > > > > +#define TYPE_AVR_CPU "avr-cpu"
> > > > > +
> > > > > +#define AVR_CPU_TYPE_SUFFIX "-" TYPE_AVR_CPU
> > > > > +#define AVR_CPU_TYPE_NAME(name) (name AVR_CPU_TYPE_SUFFIX)  
> > > > we probably can do without above macro and opencode typenames
> > > > directly since we don't have 'model' notion and don't need
> > > > translate it into typename anymore.  
> > I'd guess question was about that part.
> > What I've meant is to replace
> >  AVR_CPU_TYPE_NAME("avr6") and etc
> > with
> >  "avr6-avr-cpu"
> >    or even better with macro
> >  TYPE_AVR6_CPU "avr6-avr-cpu"
> > use it through out the code
> > and do the same for other sub-types
> >
> > [...]
> >
> >  
> 



  reply	other threads:[~2019-07-02  8:49 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-28 12:01 [Qemu-devel] [PATCH v24 0/7] QEMU AVR 8 bit cores Michael Rolnik
2019-06-28 12:01 ` [Qemu-devel] [PATCH v24 1/7] target/avr: Add outward facing interfaces and core CPU logic Michael Rolnik
2019-06-28 13:10   ` Igor Mammedov
2019-06-28 15:54     ` Michael Rolnik
2019-07-01  9:08       ` Igor Mammedov
2019-07-01 13:59         ` Michael Rolnik
2019-07-02  8:47           ` Igor Mammedov [this message]
2019-06-28 12:01 ` [Qemu-devel] [PATCH v24 2/7] target/avr: Add instruction helpers Michael Rolnik
2019-06-28 12:01 ` [Qemu-devel] [PATCH v24 3/7] target/avr: Add instruction decoding Michael Rolnik
2019-06-28 12:01 ` [Qemu-devel] [PATCH v24 4/7] target/avr: Add instruction translation Michael Rolnik
2019-06-28 12:01 ` [Qemu-devel] [PATCH v24 5/7] target/avr: Add limited support for USART and 16 bit timer peripherals Michael Rolnik
2019-06-28 12:01 ` [Qemu-devel] [PATCH v24 6/7] target/avr: Add example board configuration Michael Rolnik
2019-06-28 12:01 ` [Qemu-devel] [PATCH v24 7/7] target/avr: Register AVR support with the rest of QEMU, the build system, and the MAINTAINERS file Michael Rolnik
2019-07-02 15:55 ` [Qemu-devel] [PATCH v24 0/7] QEMU AVR 8 bit cores Philippe Mathieu-Daudé
2019-07-09 21:37   ` Michael Rolnik

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=20190702104748.332bc714@redhat.com \
    --to=imammedo@redhat.com \
    --cc=S.E.Harris@kent.ac.uk \
    --cc=mrolnik@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.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).