You need something like "CFInit" which Freescale used to provide to generate startup code. This is so old it isn't on Freescale's site any more, but this thread refers to it and where it is now:
https://community.freescale.com/message/100270#100270
It doesn't support any MCF51 chips though.
Have you downloaded and looked at "TWR-MCF51JF_QUICK_START_DEMO: TWR-MCF51JF Quick Start Demo.", which is linked from the "Software and Tools" tab for your CPU?
I thought CodeWarrior had an equivalent code generation function now? Yes, that's "Processor Expert":
https://community.freescale.com/docs/DOC-93227
Otherwise, there's only THREE registers to set up in the Mini FlexBus Module for each chip select, so you should be able to work it out by reading the manual.
Tom