Re: [Qemu-devel] [PATCH v2 1/3] hw/arm: extract ARM M Profile base class from ARMv7-M

2018-07-11 Thread Peter Maydell
On 11 July 2018 at 13:51, Stefan Hajnoczi wrote: > On Thu, Jul 05, 2018 at 04:49:22PM +0100, Peter Maydell wrote: >> On 5 July 2018 at 16:45, Peter Maydell wrote: >> > On 30 June 2018 at 10:13, Stefan Hajnoczi wrote: >> >> The ARMv7-M code is largely similar to what other M Profile CPUs need.

Re: [Qemu-devel] [PATCH v2 1/3] hw/arm: extract ARM M Profile base class from ARMv7-M

2018-07-11 Thread Stefan Hajnoczi
On Thu, Jul 05, 2018 at 04:49:22PM +0100, Peter Maydell wrote: > On 5 July 2018 at 16:45, Peter Maydell wrote: > > On 30 June 2018 at 10:13, Stefan Hajnoczi wrote: > >> The ARMv7-M code is largely similar to what other M Profile CPUs need. > >> Extract the common M Profile aspects into the

Re: [Qemu-devel] [PATCH v2 1/3] hw/arm: extract ARM M Profile base class from ARMv7-M

2018-07-05 Thread Peter Maydell
On 5 July 2018 at 16:45, Peter Maydell wrote: > On 30 June 2018 at 10:13, Stefan Hajnoczi wrote: >> The ARMv7-M code is largely similar to what other M Profile CPUs need. >> Extract the common M Profile aspects into the ARMMProfileState base >> class. ARMv6-M will inherit from this class in the

Re: [Qemu-devel] [PATCH v2 1/3] hw/arm: extract ARM M Profile base class from ARMv7-M

2018-07-05 Thread Peter Maydell
On 30 June 2018 at 10:13, Stefan Hajnoczi wrote: > The ARMv7-M code is largely similar to what other M Profile CPUs need. > Extract the common M Profile aspects into the ARMMProfileState base > class. ARMv6-M will inherit from this class in the following patch. > > It might be possible to make

[Qemu-devel] [PATCH v2 1/3] hw/arm: extract ARM M Profile base class from ARMv7-M

2018-06-30 Thread Stefan Hajnoczi
The ARMv7-M code is largely similar to what other M Profile CPUs need. Extract the common M Profile aspects into the ARMMProfileState base class. ARMv6-M will inherit from this class in the following patch. It might be possible to make ARMv6-M the base class of ARMv7-M, but it seems cleaner to