Skip to contentSkip to conversation

Move helpers.h to helper.h

PATCH In review Lluís Vilanova 2 participants 5 messages Feb 13, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Move helpers.h to helper.h

Provides a file naming scheme consistent with other targets.

---
 target-m68k/helper.c    |    2 +-
 target-m68k/helper.h    |   54 +++++++++++++++++++++++++++++++++++++++++++++++
 target-m68k/helpers.h   |   54 -----------------------------------------------
 target-m68k/op_helper.c |    2 +-
 target-m68k/translate.c |    6 +++--
 5 files changed, 59 insertions(+), 59 deletions(-)
 create mode 100644 target-m68k/helper.h
 delete mode 100644 target-m68k/helpers.h
target-m68k/helper.c +1 -1
index 674c8e6..123e1d9 100644
@@ -26,7 +26,7 @@
 #include "qemu-common.h"
 #include "gdbstub.h"
 
-#include "helpers.h"
+#include "helper.h"
 
 #define SIGNBIT (1u << 31)
 
target-m68k/helper.h new file +54 -0

54 lines not on this page · raw message

target-m68k/helpers.h deleted +0 -54

54 lines not on this page · raw message

target-m68k/op_helper.c +1 -1
index 2f7fe6b..da7ebe4 100644
@@ -18,7 +18,7 @@
  */
 #include "cpu.h"
 #include "dyngen-exec.h"
-#include "helpers.h"
+#include "helper.h"
 
 #if defined(CONFIG_USER_ONLY)
 
target-m68k/translate.c +3 -3
index 0e7f1fe..fe750e2 100644
@@ -29,9 +29,9 @@
 #include "tcg-op.h"
 #include "qemu-log.h"
 
-#include "helpers.h"
+#include "helper.h"
 #define GEN_HELPER 1
-#include "helpers.h"
+#include "helper.h"
 
 //#define DEBUG_DISPATCH 1
 
@@ -110,7 +110,7 @@ void m68k_tcg_init(void)
     store_dummy = tcg_global_mem_new(TCG_AREG0, -8, "NULL");
 
 #define GEN_HELPER 2
-#include "helpers.h"
+#include "helper.h"
 }
 
 static inline void qemu_assert(int cond, const char *msg)
#1 lore raw

Am 13.02.2012 16:33, schrieb Lluís Vilanova:

Quoted 12 lines

Provides a file naming scheme consistent with other targets.

---
 target-m68k/helper.c    |    2 +-
 target-m68k/helper.h    |   54 +++++++++++++++++++++++++++++++++++++++++++++++
 target-m68k/helpers.h   |   54 -----------------------------------------------
 target-m68k/op_helper.c |    2 +-
 target-m68k/translate.c |    6 +++--
 5 files changed, 59 insertions(+), 59 deletions(-)
 create mode 100644 target-m68k/helper.h
 delete mode 100644 target-m68k/helpers.h

Please check your git options, it did not recognize that you're renaming the file. Or did you also reformat it?

Is there any particular reason for these three patches beyond aesthetics? Header names are purely target-specific choices here and do not simplify, e.g., any Makefile logic.

Andreas

Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
#2 lore raw
Quoted 14 lines · Andreas Färber

Am 13.02.2012 16:33, schrieb Lluís Vilanova:

Quoted 4 lines

Provides a file naming scheme consistent with other targets.

---

Quoted 8 lines
target-m68k/helper.c    |    2 +-
target-m68k/helper.h    |   54 +++++++++++++++++++++++++++++++++++++++++++++++
target-m68k/helpers.h   |   54 -----------------------------------------------
target-m68k/op_helper.c |    2 +-
target-m68k/translate.c |    6 +++--
5 files changed, 59 insertions(+), 59 deletions(-)

create mode 100644 target-m68k/helper.h
delete mode 100644 target-m68k/helpers.h

Quoted 2 lines

Please check your git options, it did not recognize that you're renaming the file. Or did you also reformat it?

It's pure file renaming. Which git options are you referring to?

Quoted 3 lines

Is there any particular reason for these three patches beyond aesthetics? Header names are purely target-specific choices here and do not simplify, e.g., any Makefile logic.

It's used by a tracetool-related patch in my TCG tracing queue. I just thought I could send it separately (due to aesthetics) while other earlier patches are waiting on enter Stefan's tracing queue.

Lluis

Signature · 4 lines
 "And it's much the same thing with knowledge, for whenever you learn
 something new, the whole world becomes that much richer."
 -- The Princess of Pure Reason, as told by Norton Juster in The Phantom
 Tollbooth
#3 lore raw

Am 13.02.2012 18:01, schrieb Lluís Vilanova:

Quoted 16 lines
Quoted 13 lines · Andreas Färber

Am 13.02.2012 16:33, schrieb Lluís Vilanova:

Quoted 12 lines

Provides a file naming scheme consistent with other targets.

---

target-m68k/helper.c    |    2 +-
target-m68k/helper.h    |   54 +++++++++++++++++++++++++++++++++++++++++++++++
target-m68k/helpers.h   |   54 -----------------------------------------------
target-m68k/op_helper.c |    2 +-
target-m68k/translate.c |    6 +++--
5 files changed, 59 insertions(+), 59 deletions(-)

create mode 100644 target-m68k/helper.h
delete mode 100644 target-m68k/helpers.h

Quoted 4 lines
Quoted 2 lines

Please check your git options, it did not recognize that you're renaming the file. Or did you also reformat it?

It's pure file renaming. Which git options are you referring to?

Command lines options:
--no-renames
--find-renames=n / -Mn

Or config file options:
[diff]
renames = true
;or renames = "copies"

The default settings (i.e., none of the above set) usually detect it.

Andreas

Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
#4 lore raw
Quoted 26 lines · Andreas Färber

Am 13.02.2012 18:01, schrieb Lluís Vilanova:

Quoted 16 lines
Quoted 13 lines · Andreas Färber

Am 13.02.2012 16:33, schrieb Lluís Vilanova:

Quoted 12 lines

Provides a file naming scheme consistent with other targets.

---

target-m68k/helper.c    |    2 +-
target-m68k/helper.h    |   54 +++++++++++++++++++++++++++++++++++++++++++++++
target-m68k/helpers.h   |   54 -----------------------------------------------
target-m68k/op_helper.c |    2 +-
target-m68k/translate.c |    6 +++--
5 files changed, 59 insertions(+), 59 deletions(-)

create mode 100644 target-m68k/helper.h
delete mode 100644 target-m68k/helpers.h

Quoted 4 lines
Quoted 2 lines

Please check your git options, it did not recognize that you're renaming the file. Or did you also reformat it?

It's pure file renaming. Which git options are you referring to?

Command lines options:
--no-renames
--find-renames=n / -Mn

Quoted 6 lines

Or config file options:
[diff]
renames = true
;or renames = "copies"

The default settings (i.e., none of the above set) usually detect it.

Ah, right. It seems like stgit failed to activate rename detection when calling git diff to send the mails.

Lluis

Signature · 4 lines
 "And it's much the same thing with knowledge, for whenever you learn
 something new, the whole world becomes that much richer."
 -- The Princess of Pure Reason, as told by Norton Juster in The Phantom
 Tollbooth