Преглед на файлове

Document softmmu templates

Add some comments to describe each file.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Blue Swirl преди 14 години
родител
ревизия
efbf29b681
променени са 4 файла, в които са добавени 33 реда и са изтрити 1 реда
  1. 8 0
      softmmu_defs.h
  2. 11 1
      softmmu_exec.h
  3. 9 0
      softmmu_header.h
  4. 5 0
      softmmu_template.h

+ 8 - 0
softmmu_defs.h

@@ -1,3 +1,11 @@
+/*
+ *  Software MMU support
+ *
+ * Declare helpers used by TCG for qemu_ld/st ops.
+ *
+ * Used by softmmu_exec.h, TCG targets and exec-all.h.
+ *
+ */
 #ifndef SOFTMMU_DEFS_H
 #ifndef SOFTMMU_DEFS_H
 #define SOFTMMU_DEFS_H
 #define SOFTMMU_DEFS_H
 
 

+ 11 - 1
softmmu_exec.h

@@ -1,4 +1,14 @@
-/* Common softmmu definitions and inline routines.  */
+/*
+ *  Software MMU support
+ *
+ * Generate inline load/store functions for all MMU modes (typically
+ * at least _user and _kernel) as well as _data versions, for all data
+ * sizes.
+ *
+ * Used by target op helpers.
+ *
+ * MMU mode suffixes are defined in target cpu.h.
+ */
 
 
 /* XXX: find something cleaner.
 /* XXX: find something cleaner.
  * Furthermore, this is false for 64 bits targets
  * Furthermore, this is false for 64 bits targets

+ 9 - 0
softmmu_header.h

@@ -1,6 +1,15 @@
 /*
 /*
  *  Software MMU support
  *  Software MMU support
  *
  *
+ * Generate inline load/store functions for one MMU mode and data
+ * size.
+ *
+ * Generate a store function as well as signed and unsigned loads. For
+ * 32 and 64 bit cases, also generate floating point functions with
+ * the same size.
+ *
+ * Not used directly but included from softmmu_exec.h and exec-all.h.
+ *
  *  Copyright (c) 2003 Fabrice Bellard
  *  Copyright (c) 2003 Fabrice Bellard
  *
  *
  * This library is free software; you can redistribute it and/or
  * This library is free software; you can redistribute it and/or

+ 5 - 0
softmmu_template.h

@@ -1,6 +1,11 @@
 /*
 /*
  *  Software MMU support
  *  Software MMU support
  *
  *
+ * Generate helpers used by TCG for qemu_ld/st ops and code load
+ * functions.
+ *
+ * Included from target op helpers and exec.c.
+ *
  *  Copyright (c) 2003 Fabrice Bellard
  *  Copyright (c) 2003 Fabrice Bellard
  *
  *
  * This library is free software; you can redistribute it and/or
  * This library is free software; you can redistribute it and/or