Re: [PATCH 8/8] Construct readonly regcache without address space

Simon Marchi
2017-10-31T14:35:18Z

On 2017-10-27 05:31 AM, Yao Qi wrote:
> The address space is useless to readonly regcache, so this patch removes
> the parameter to construct readonly regcache.

Can you expand on why the aspace is useless for readonly regcaches? The
comment of m_aspace says:

/* The address space of this register cache (for registers where it
makes sense, like PC or SP). */

Registers like PC or SP are present even in a readonly regcache, so I
would think that it makes sense to have the address space there as well.
So, is it that it's really useless (as in it doesn't make sense to have
it there) or that we just don't happen to use the address space right now
with readonly regcaches?

Simon