aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Brady <sdbrady@ntlworld.com>2009-05-03 12:15:06 +0100
committerBlue Swirl <blauwirbel@gmail.com>2009-05-03 21:58:28 +0300
commitccbb4d44fc5e92bac6006a218ccda3138407352c (patch)
tree98850878b265a27279f754afe2ae5b8ebcabcac7
parent719f66a770f18c07a14935e418e339b462571f36 (diff)
Fix typos in comments in exec.c
This patch fixes several typos in comments in exec.c: longet -> longer recommanded -> recommended ajustments -> adjustments inconsistancies -> inconsistencies phsical -> physical positionned -> positioned succesfully -> successfully regon_offset -> region_offset and also: start_region -> start_addr Signed-off-by: Stuart Brady <stuart.brady@gmail.com>
-rw-r--r--exec.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/exec.c b/exec.c
index c64938124b..c5c92809eb 100644
--- a/exec.c
+++ b/exec.c
@@ -120,7 +120,7 @@ typedef struct RAMBlock {
static RAMBlock *ram_blocks;
/* TODO: When we implement (and use) ram deallocation (e.g. for hotplug)
- then we can no longet assume contiguous ram offsets, and external uses
+ then we can no longer assume contiguous ram offsets, and external uses
of this variable will break. */
ram_addr_t last_ram_offset;
#endif
@@ -398,7 +398,7 @@ static void tlb_unprotect_code_phys(CPUState *env, ram_addr_t ram_addr,
#define DEFAULT_CODE_GEN_BUFFER_SIZE (32 * 1024 * 1024)
#if defined(CONFIG_USER_ONLY)
-/* Currently it is not recommanded to allocate big chunks of data in
+/* Currently it is not recommended to allocate big chunks of data in
user mode. It will change when a dedicated libc will be used */
#define USE_STATIC_CODE_GEN_BUFFER
#endif
@@ -420,7 +420,7 @@ static void code_gen_alloc(unsigned long tb_size)
/* in user mode, phys_ram_size is not meaningful */
code_gen_buffer_size = DEFAULT_CODE_GEN_BUFFER_SIZE;
#else
- /* XXX: needs ajustments */
+ /* XXX: needs adjustments */
code_gen_buffer_size = (unsigned long)(ram_size / 4);
#endif
}
@@ -1467,7 +1467,7 @@ void cpu_single_step(CPUState *env, int enabled)
if (kvm_enabled())
kvm_update_guest_debug(env, 0);
else {
- /* must flush all the translated code to avoid inconsistancies */
+ /* must flush all the translated code to avoid inconsistencies */
/* XXX: only flush what is necessary */
tb_flush(env);
}
@@ -2046,7 +2046,7 @@ int tlb_set_page_exec(CPUState *env, target_ulong vaddr,
else
iotlb |= IO_MEM_ROM;
} else {
- /* IO handlers are currently passed a phsical address.
+ /* IO handlers are currently passed a physical address.
It would be nice to pass an offset from the base address
of that region. This would avoid having to special case RAM,
and avoid full address decoding in every device.
@@ -2175,7 +2175,7 @@ int page_get_flags(target_ulong address)
}
/* modify the flags of a page and invalidate the code if
- necessary. The flag PAGE_WRITE_ORG is positionned automatically
+ necessary. The flag PAGE_WRITE_ORG is positioned automatically
depending on PAGE_WRITE */
void page_set_flags(target_ulong start, target_ulong end, int flags)
{
@@ -2242,7 +2242,7 @@ int page_check_range(target_ulong start, target_ulong len, int flags)
}
/* called from signal handler: invalidate the code and unprotect the
- page. Return TRUE if the fault was succesfully handled. */
+ page. Return TRUE if the fault was successfully handled. */
int page_unprotect(target_ulong address, unsigned long pc, void *puc)
{
unsigned int page_index, prot, pindex;
@@ -2326,7 +2326,7 @@ static void *subpage_init (target_phys_addr_t base, ram_addr_t *phys,
page size. If (phys_offset & ~TARGET_PAGE_MASK) != 0, then it is an
io memory page. The address used when calling the IO function is
the offset from the start of the region, plus region_offset. Both
- start_region and regon_offset are rounded down to a page boundary
+ start_addr and region_offset are rounded down to a page boundary
before calculating this offset. This should not be a problem unless
the low bits of start_addr and region_offset differ. */
void cpu_register_physical_memory_offset(target_phys_addr_t start_addr,