This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] MIPS: Handle the DSP registers for bare metal
- From: Yao Qi <yao at codesourcery dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: <gdb-patches at sourceware dot org>
- Date: Fri, 19 Dec 2014 11:54:45 +0800
- Subject: Re: [PATCH] MIPS: Handle the DSP registers for bare metal
- Authentication-results: sourceware.org; auth=none
- References: <1418909149-29929-1-git-send-email-yao at codesourcery dot com> <54930ED2 dot 1080806 at redhat dot com>
Pedro Alves <palves@redhat.com> writes:
> Took me a bit to grok this, but this is adding slack for ACXn, right?
Sorry, what do you mean by "slack" here? Is it "gap" or something else?
The offsets of DSP registers are different on linux and bare metal, so
this patch gives the correct offset or layout to them.
> But it seems like nothing in GDB knows about those ACX registers. I
> guess I'm being dense, but why is this patch needed then? They should still
> be accessible to the user even without this change, right? Assuming the
> description is including them.
We want the number of these registers are fixed, and these fixed numbers
will be used in a follow-up patch about dynamic registers discovery
(which is about reading available config registers and parsing bits in them)
MIPS architecture defines 50+ subset of optional CP0 registers, so the
number of variants is too high to make current static register
description approach useless.
--
Yao (éå)