From: Paolo Bonzini <pbonzini@redhat.com>
To: kvm@vger.kernel.org
Cc: Alexandru Elisei <alexandru.elisei@arm.com>
Subject: [PATCH kvm-unit-tests 0/2] fix long division routines for ARM eabi
Date: Tue, 11 May 2021 19:41:04 +0200 [thread overview]
Message-ID: <20210511174106.703235-1-pbonzini@redhat.com> (raw)
As reported by Alexandru, ARM follows a different convention than
x86 so it needs __aeabi_ldivmod and __aeabi_uldivmod. Because
it does not use __divdi3 and __moddi3, it also needs __divmoddi4
to build the eabi function upon.
Paolo
Paolo Bonzini (2):
libcflat: clean up and complete long division routines
arm: add eabi version of 64-bit division functions
arm/Makefile.arm | 1 +
lib/arm/ldivmod.S | 32 ++++++++++++++++++++++++++++++++
lib/ldiv32.c | 28 +++++++++++++++++++++++++---
3 files changed, 58 insertions(+), 3 deletions(-)
create mode 100644 lib/arm/ldivmod.S
--
2.31.1
next reply other threads:[~2021-05-11 17:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-11 17:41 Paolo Bonzini [this message]
2021-05-11 17:41 ` [PATCH kvm-unit-tests 1/2] libcflat: clean up and complete long division routines Paolo Bonzini
2021-05-12 10:39 ` Alexandru Elisei
2021-05-12 10:47 ` Paolo Bonzini
2021-05-11 17:41 ` [PATCH kvm-unit-tests 2/2] arm: add eabi version of 64-bit division functions Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210511174106.703235-1-pbonzini@redhat.com \
--to=pbonzini@redhat.com \
--cc=alexandru.elisei@arm.com \
--cc=kvm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 NNTP newsgroup(s).