Farid Hajji wrote:
Hi Volkmar and Kevin,
trying to get l4ka running under bochs would probably require slight modifications to the bochs sources, so that 4 MB pages (bit 4 PSE of CR4) can be supported (please see summary below).
As I'm focused on plex86.org currently, I can't help implement these changes right now. But these notes do seem to point out most of the areas which you'd need to change to support 4MB pages.
Additionally, in cpu/cpu.cc, the instruction prefetching is currently hardwired to assume 4K page boundaries. You'd have to modify this also. The functions are:
::prefetch() ::revalidate_prefetch_q()
Essentially, until control out of the current page occurs, bochs does not keep translating linear page to physical page for efficiency. So you'd need to make the page size variable here.
Incedently, I'm going to be moving the bochs web site/email list to a new ISP soon, and setting up a CVS tree. I'll be querrying people to see who wants to be a CVS writer.
-Kevin