comparison trans.c @ 570:76bba9ffe351

Initial stab at separating the generic parts of the 68K core from the host-cpu specific parts.
author Michael Pavone <pavone@retrodev.com>
date Sun, 02 Mar 2014 16:34:29 -0800
parents 9b7fcf748be0
children 0f32f52fc98e
comparison
equal deleted inserted replaced
569:9b7fcf748be0 570:76bba9ffe351
47 memmap[1].start = 0xE00000; 47 memmap[1].start = 0xE00000;
48 memmap[1].end = 0x1000000; 48 memmap[1].end = 0x1000000;
49 memmap[1].mask = 0xFFFF; 49 memmap[1].mask = 0xFFFF;
50 memmap[1].flags = MMAP_READ | MMAP_WRITE | MMAP_CODE; 50 memmap[1].flags = MMAP_READ | MMAP_WRITE | MMAP_CODE;
51 memmap[1].buffer = malloc(64 * 1024); 51 memmap[1].buffer = malloc(64 * 1024);
52 init_x86_68k_opts(&opts, memmap, 2); 52 init_m68k_opts(&opts, memmap, 2);
53 init_68k_context(&context, opts.gen.native_code_map, &opts); 53 init_68k_context(&context, opts.gen.native_code_map, &opts);
54 context.mem_pointers[0] = memmap[0].buffer; 54 context.mem_pointers[0] = memmap[0].buffer;
55 context.mem_pointers[1] = memmap[1].buffer; 55 context.mem_pointers[1] = memmap[1].buffer;
56 context.target_cycle = context.sync_cycle = 0x80000000; 56 context.target_cycle = context.sync_cycle = 0x80000000;
57 uint32_t address; 57 uint32_t address;