Messages in this thread | | | From | Anup Patel <> | Date | Sat, 13 Apr 2019 13:44:18 +0530 | Subject | Re: [PATCH 1/3] RISC-V: Add separate asm/encoding.h for spec related defines |
| |
On Sat, Apr 13, 2019 at 1:23 PM Christoph Hellwig <hch@infradead.org> wrote: > > On Sat, Apr 13, 2019 at 07:39:35AM +0000, Anup Patel wrote: > > It's better to have all RISC-V spec related defines in one place > > so this patch adds separate asm/encoding.h for such defines which > > can be included in assembly as well as C code. > > <asm/csr.h> can be included from assembly just fine already. > and we already do that. So I don't really see much of a point > in splitting it.
We would be also having #defines which will help us decode load/store instructions as well. This will be used for load/store emulation for MMIO devices in KVM hypervisor.
Consider this patch as preparatory patch for the KVM support we are working on.
Regards, Anup
| |