Hi Mike, On Sat, Jan 14, 2023 at 07:22:29PM -0500, Mike Frysinger wrote: > On 15 Jan 2023 00:28, Mark Wielaard wrote: > > signal.h isn't needed in microblaze and mn10300 interp.c > > so don't include it. > > these changes are fine to merge if you want to split it out Thanks. I pushed the attached for just those two changed. > > In common sim-events.c, sim-signal.c, nrun.c and dv-sockser.c we > > do need signal.h, but check whether REG_PC is defined (and then > > undefine it) before including the sim headers. > > > > It breaks the build on sparc because signal.h indirectly > > includes /usr/include/sys/ucontext.h and defines REG_PC, > > which is also defined in microblaze-opcm.h > > i don't think this is correct. none of the files quoted use REG_PC, > so undefining a random symbol in them doesn't make sense. nothing in > sim/common/ uses REG_PC for that matter. I see what you mean. I'll try to come up with another fix for this part. Cheers, Mark