public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Nick Clifton <nickc@redhat.com>
To: gdb-patches@sourceware.org
Subject: Re: RFA: AArch64 sim
Date: Fri, 20 Nov 2015 10:56:00 -0000	[thread overview]
Message-ID: <564EFC67.9020902@redhat.com> (raw)
In-Reply-To: <20151120091326.GC23754@vapier.lan>

[-- Attachment #1: Type: text/plain, Size: 1290 bytes --]

Hi Mike,

> you should scan the code and make sure it's doing func (foo) everywhere.
> i noticed a few places like this where it's not.

Done.

>> +sim_fetch_register (SIM_DESC sd, int regno, unsigned char *buf, int length)
>> +sim_store_register (SIM_DESC sd, int regno, unsigned char *buf, int length)
>
> please convert to CPU_REG_FETCH/CPU_REG_STORE instead of defining these.

Done.

>> +SIM_OBJS = \
>> ...
>> +	sim-reason.o \
>> +	sim-stop.o
>
> you can delete these two from your Makefile as the common core adds them.

Thanks.

>> +#define TRACE_MEM_WRITES (1 << 0)
>> +#define TRACE_REG_WRITES (1 << 1)
>> +#define TRACE_FUNCTIONS  (1 << 2)
>> +#define TRACE_MISC       (1 << 3)
>> +#define TRACE_ALL       ((1 << 4) - 1)
>
> unused -> delete

Done.

>> +#define TST( _flag )   (aarch64_test_CPSR_bit (cpu, _flag))
>> +#define IS_SET( _X )   ( TST (( _X )))
>> +#define IS_CLEAR( _X ) (!TST (( _X )))
>
> drop the weird spacing here

Done.

>> +report_and_die (sim_cpu *cpu, int exitCode)
>> +{
>> +  TRACE_EVENTS (cpu, "Exiting simulator with exit code %d", exitCode);
>> +  exit (exitCode);
>> +}
>
> pretty sure you can use one of the existing abort funcs instead
> of defining your own.  like sim_engine_abort.

Done.

Revised patch attached.  OK to apply ?

Cheers
   Nick



[-- Attachment #2: aarch64.sim.patch.5.xz --]
[-- Type: application/x-xz, Size: 50628 bytes --]

  reply	other threads:[~2015-11-20 10:56 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-28 12:25 Nick Clifton
2015-07-02  9:17 ` Andre Vieira
2015-07-02 13:53   ` Nicholas Clifton
2015-07-02 14:43     ` Andre Vieira
     [not found]     ` <55954DEE.50609@arm.com>
2015-07-02 15:20       ` Nicholas Clifton
2015-07-07 17:12 ` Mike Frysinger
2015-07-15 16:58 ` Nick Clifton
2015-07-16 15:19   ` Mike Frysinger
2015-07-17 14:10     ` Nicholas Clifton
2015-11-10  7:32       ` Mike Frysinger
2015-11-19 14:51         ` Nick Clifton
2015-11-20  9:13           ` Mike Frysinger
2015-11-20 10:56             ` Nick Clifton [this message]
2015-11-20 19:28               ` Mike Frysinger
2015-11-24  8:50                 ` Nick Clifton

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=564EFC67.9020902@redhat.com \
    --to=nickc@redhat.com \
    --cc=gdb-patches@sourceware.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 read-only IMAP folder(s) and NNTP newsgroup(s).