public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] [Arm] Update the list of recognized m-profile TAG_CPU_ARCH_*
@ 2022-03-23  9:21 Luis Machado
  2022-03-25 18:28 ` Alan Hayward
  0 siblings, 1 reply; 2+ messages in thread
From: Luis Machado @ 2022-03-23  9:21 UTC (permalink / raw)
  To: gdb-patches

Check 3 additional variants previously not recognized:

- TAG_CPU_ARCH_V7E_M
- TAG_CPU_ARCH_V8M_BASE
- TAG_CPU_ARCH_V8M_MAIN
---
 gdb/arm-tdep.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index 7903069c076..9a10b4d1497 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -9342,6 +9342,9 @@ arm_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
 	      if (!tdesc_has_registers (tdesc)
 		  && (attr_arch == TAG_CPU_ARCH_V6_M
 		      || attr_arch == TAG_CPU_ARCH_V6S_M
+		      || attr_arch == TAG_CPU_ARCH_V7E_M
+		      || attr_arch == TAG_CPU_ARCH_V8M_BASE
+		      || attr_arch == TAG_CPU_ARCH_V8M_MAIN
 		      || attr_arch == TAG_CPU_ARCH_V8_1M_MAIN
 		      || attr_profile == 'M'))
 		is_m = true;
-- 
2.25.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] [Arm] Update the list of recognized m-profile TAG_CPU_ARCH_*
  2022-03-23  9:21 [PATCH] [Arm] Update the list of recognized m-profile TAG_CPU_ARCH_* Luis Machado
@ 2022-03-25 18:28 ` Alan Hayward
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Hayward @ 2022-03-25 18:28 UTC (permalink / raw)
  To: Luis Machado; +Cc: gdb-patches\@sourceware.org, nd



> On 23 Mar 2022, at 09:21, Luis Machado via Gdb-patches <gdb-patches@sourceware.org> wrote:
> 
> Check 3 additional variants previously not recognized:
> 
> - TAG_CPU_ARCH_V7E_M
> - TAG_CPU_ARCH_V8M_BASE
> - TAG_CPU_ARCH_V8M_MAIN
> ---
> gdb/arm-tdep.c | 3 +++
> 1 file changed, 3 insertions(+)
> 
> diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
> index 7903069c076..9a10b4d1497 100644
> --- a/gdb/arm-tdep.c
> +++ b/gdb/arm-tdep.c
> @@ -9342,6 +9342,9 @@ arm_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
> 	      if (!tdesc_has_registers (tdesc)
> 		  && (attr_arch == TAG_CPU_ARCH_V6_M
> 		      || attr_arch == TAG_CPU_ARCH_V6S_M
> +		      || attr_arch == TAG_CPU_ARCH_V7E_M
> +		      || attr_arch == TAG_CPU_ARCH_V8M_BASE
> +		      || attr_arch == TAG_CPU_ARCH_V8M_MAIN
> 		      || attr_arch == TAG_CPU_ARCH_V8_1M_MAIN
> 		      || attr_profile == 'M'))

This looks ok to me.
I double checked to make sure there aren’t any more mprofile defines not being checked.


Alan.

> 		is_m = true;
> -- 
> 2.25.1
> 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-03-25 18:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-23  9:21 [PATCH] [Arm] Update the list of recognized m-profile TAG_CPU_ARCH_* Luis Machado
2022-03-25 18:28 ` Alan Hayward

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).