Skip to content

target/ppc: powerpc_excp improvements (9/9)

Fabiano Rosas qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4target/ppc: Remove powerpc_excp_legacytarget/ppc/excp_helper.c+3 -4742 replies
2/4target/ppc: powerpc_excp: Move common code to the caller functiontarget/ppc/excp_helper.c+9 -481 reply
3/4target/ppc: Assert if MSR bits differ from msr_mask during exceptionstarget/ppc/excp_helper.c+6 -580 replies
4/4target/ppc: books: Remove excp_model argument from ppc_excp_apply_ailtarget/ppc/excp_helper.c+13 -120 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchCédric Le Goater
1/4R-b
2/4R-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] target/ppc: powerpc_excp improvements (9/9)

This is the last part of this series of changes to the exceptions code.

First two patches remove the powerpc_excp_legacy function which is not needed anymore and move some of the common code from the individual powerpc_excp_* functions into powerpc_excp.

Third patch makes the sanity check against msr_mask generic to check all MSR bits.

Last patch removes excp_model from the AIL code for BookS. We now have only two instances left of excp_model being used as an identifier for specific CPUs.

== Next steps ==

I'll work on the next steps which include some cleanups to cpu_init and hopefully moving into separate files for each CPU family.

I'm also thinking about some changes to the POWERPC_FAMILY macro to remove the _FAMILY part, since this code has been used for a long time to create single CPUs instead of a whole family. I think the separation we have now with the exception models better represents the concept of family. So I would rather call the macro POWERPC_CPU and add (if needed) a new field 'family' to the class. With that and having one family per file, we would be able to remove the excp_model enum altogether by adding a pointer to powerpc_excp like we have for init_proc.

I'll put all of that in an RFC so we can discuss.

Thanks

Fabiano Rosas (4):
target/ppc: Remove powerpc_excp_legacy
target/ppc: powerpc_excp: Move common code to the caller function target/ppc: Assert if MSR bits differ from msr_mask during exceptions target/ppc: books: Remove excp_model argument from ppc_excp_apply_ail

 target/ppc/excp_helper.c | 623 ++-------------------------------------
 1 file changed, 31 insertions(+), 592 deletions(-)
Signature · 1 line
2.34.1