Regression test bitopcse.c with type long requires 0x86 bytes in DSEG for HC08 where there are only 0x80 available in the current configuration. I am reluctant to just move some (all?) variables to xdata as I don't know how it will impact what was supposed to be tested. Disabling it all together also feels wrong.
A solution could be to give the hc08 a bit more data memory in the regression tests, e.g. starting from 0x70 or even lower. I have no idea what peripherals the simulator has at these addresses, if any.
The bug is of course that the linker doesn't notice the page overflow and I am working on that (actually that's how I found it), but we also need a solution for this regression test.
Any idea is welcome.
I'm starting to wonder why the memory space was specified in the first place. I can only guess that it is because for type long it does not fit in mcs51 data memory. But with this explicit memory space it is not tested in other memory spaces. I tend to removing the memory space unless testing for mcs51-small. This means that for hc08 the global variables are moved out of the direct page.