Commit ccbb4d44fc5e92bac6006a218ccda3138407352c
Committed by
Blue Swirl
1 parent
719f66a7
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>
Showing
1 changed file
with
8 additions
and
8 deletions
exec.c
... | ... | @@ -120,7 +120,7 @@ typedef struct RAMBlock { |
120 | 120 | |
121 | 121 | static RAMBlock *ram_blocks; |
122 | 122 | /* TODO: When we implement (and use) ram deallocation (e.g. for hotplug) |
123 | - then we can no longet assume contiguous ram offsets, and external uses | |
123 | + then we can no longer assume contiguous ram offsets, and external uses | |
124 | 124 | of this variable will break. */ |
125 | 125 | ram_addr_t last_ram_offset; |
126 | 126 | #endif |
... | ... | @@ -398,7 +398,7 @@ static void tlb_unprotect_code_phys(CPUState *env, ram_addr_t ram_addr, |
398 | 398 | #define DEFAULT_CODE_GEN_BUFFER_SIZE (32 * 1024 * 1024) |
399 | 399 | |
400 | 400 | #if defined(CONFIG_USER_ONLY) |
401 | -/* Currently it is not recommanded to allocate big chunks of data in | |
401 | +/* Currently it is not recommended to allocate big chunks of data in | |
402 | 402 | user mode. It will change when a dedicated libc will be used */ |
403 | 403 | #define USE_STATIC_CODE_GEN_BUFFER |
404 | 404 | #endif |
... | ... | @@ -420,7 +420,7 @@ static void code_gen_alloc(unsigned long tb_size) |
420 | 420 | /* in user mode, phys_ram_size is not meaningful */ |
421 | 421 | code_gen_buffer_size = DEFAULT_CODE_GEN_BUFFER_SIZE; |
422 | 422 | #else |
423 | - /* XXX: needs ajustments */ | |
423 | + /* XXX: needs adjustments */ | |
424 | 424 | code_gen_buffer_size = (unsigned long)(ram_size / 4); |
425 | 425 | #endif |
426 | 426 | } |
... | ... | @@ -1467,7 +1467,7 @@ void cpu_single_step(CPUState *env, int enabled) |
1467 | 1467 | if (kvm_enabled()) |
1468 | 1468 | kvm_update_guest_debug(env, 0); |
1469 | 1469 | else { |
1470 | - /* must flush all the translated code to avoid inconsistancies */ | |
1470 | + /* must flush all the translated code to avoid inconsistencies */ | |
1471 | 1471 | /* XXX: only flush what is necessary */ |
1472 | 1472 | tb_flush(env); |
1473 | 1473 | } |
... | ... | @@ -2046,7 +2046,7 @@ int tlb_set_page_exec(CPUState *env, target_ulong vaddr, |
2046 | 2046 | else |
2047 | 2047 | iotlb |= IO_MEM_ROM; |
2048 | 2048 | } else { |
2049 | - /* IO handlers are currently passed a phsical address. | |
2049 | + /* IO handlers are currently passed a physical address. | |
2050 | 2050 | It would be nice to pass an offset from the base address |
2051 | 2051 | of that region. This would avoid having to special case RAM, |
2052 | 2052 | and avoid full address decoding in every device. |
... | ... | @@ -2175,7 +2175,7 @@ int page_get_flags(target_ulong address) |
2175 | 2175 | } |
2176 | 2176 | |
2177 | 2177 | /* modify the flags of a page and invalidate the code if |
2178 | - necessary. The flag PAGE_WRITE_ORG is positionned automatically | |
2178 | + necessary. The flag PAGE_WRITE_ORG is positioned automatically | |
2179 | 2179 | depending on PAGE_WRITE */ |
2180 | 2180 | void page_set_flags(target_ulong start, target_ulong end, int flags) |
2181 | 2181 | { |
... | ... | @@ -2242,7 +2242,7 @@ int page_check_range(target_ulong start, target_ulong len, int flags) |
2242 | 2242 | } |
2243 | 2243 | |
2244 | 2244 | /* called from signal handler: invalidate the code and unprotect the |
2245 | - page. Return TRUE if the fault was succesfully handled. */ | |
2245 | + page. Return TRUE if the fault was successfully handled. */ | |
2246 | 2246 | int page_unprotect(target_ulong address, unsigned long pc, void *puc) |
2247 | 2247 | { |
2248 | 2248 | unsigned int page_index, prot, pindex; |
... | ... | @@ -2326,7 +2326,7 @@ static void *subpage_init (target_phys_addr_t base, ram_addr_t *phys, |
2326 | 2326 | page size. If (phys_offset & ~TARGET_PAGE_MASK) != 0, then it is an |
2327 | 2327 | io memory page. The address used when calling the IO function is |
2328 | 2328 | the offset from the start of the region, plus region_offset. Both |
2329 | - start_region and regon_offset are rounded down to a page boundary | |
2329 | + start_addr and region_offset are rounded down to a page boundary | |
2330 | 2330 | before calculating this offset. This should not be a problem unless |
2331 | 2331 | the low bits of start_addr and region_offset differ. */ |
2332 | 2332 | void cpu_register_physical_memory_offset(target_phys_addr_t start_addr, | ... | ... |