qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] RFC: cleanups: CPU_MEM_INDEX


From: J. Mayer
Subject: [Qemu-devel] RFC: cleanups: CPU_MEM_INDEX
Date: Tue, 09 Oct 2007 21:33:21 +0200

Here's a proposal to add a int cpu_mem_index (CPUState *env) function in
targets cpu.h header.
The idea of this patch is:
- avoid many #ifdef TARGET_xxx in exec-all.h and  softmmu_header.h then
make the code more readable
- avoid multiple implementation of the same code (3, in that particular
case) this to avoid potential conflicts if the definition has to be
updated for any reason (ie support for new memory access modes,
emulation optimisation...)

Please comment.

-- 
J. Mayer <address@hidden>
Never organized

Attachment: cpu_mem_index.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]