Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use upstream SoftFloat and unify build system #557

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jserv
Copy link
Contributor

@jserv jserv commented Feb 7, 2025

Replace custom Berkeley SoftFloat 3 package in 'src/softfloat' with the upstream one. It streamlines build system onfiguration for consistency.

Summary by Bito

This PR integrates the upstream Berkeley SoftFloat 3 package, replacing the custom version. The changes focus on build system improvements through a new mk/softfloat.mk file, updated submodule configuration, and streamlined header paths. The modifications enhance build organization and dependency management for SoftFloat-related components.

Unit tests added: False

Estimated effort to review (1-5, lower is better): 2

Copy link

bito-code-review bot commented Feb 7, 2025

Code Review Agent Run #ba12d7

Actionable Suggestions - 1
  • Makefile - 1
    • Consider adding softfloat.mk existence check · Line 117-120
Review Details
  • Files reviewed - 7 · Commit Range: a78b90b..a78b90b
    • .gitmodules
    • Makefile
    • mk/softfloat.mk
    • mk/toolchain.mk
    • src/emulate.c
    • src/riscv.h
    • src/softfloat
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful
    • Fb Infer (Static Code Analysis) - ✖︎ Failed

AI Code Review powered by Bito Logo

Copy link

bito-code-review bot commented Feb 7, 2025

Changelist by Bito

This pull request implements the following key changes.

Key Change Files Impacted
Feature Improvement - SoftFloat Integration and Build System Updates

.gitmodules - Updated SoftFloat submodule URL to use upstream repository

Makefile - Refactored SoftFloat build configuration and cleanup rules

softfloat.mk - Added new build configuration file for SoftFloat compilation

toolchain.mk - Added AR utility definition for build system

emulate.c - Updated SoftFloat header inclusion path

riscv.h - Updated SoftFloat header path to use upstream source

softfloat - Updated submodule commit to use upstream version

Makefile Show resolved Hide resolved
Copy link
Contributor Author

@jserv jserv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmarks

Benchmark suite Current: b41f6fa Previous: 8bcf084 Ratio
Dhrystone 1321 Average DMIPS over 10 runs 1318 Average DMIPS over 10 runs 1.00
Coremark 946.94 Average iterations/sec over 10 runs 948.979 Average iterations/sec over 10 runs 1.00

This comment was automatically generated by workflow using github-action-benchmark.

@jserv jserv force-pushed the modular-softfloat branch from a78b90b to 2b375ea Compare February 7, 2025 18:44
Copy link

bito-code-review bot commented Feb 7, 2025

Code Review Agent Run #e1b2a2

Actionable Suggestions - 0
Review Details
  • Files reviewed - 7 · Commit Range: 2b375ea..2b375ea
    • .gitmodules
    • Makefile
    • mk/softfloat.mk
    • mk/toolchain.mk
    • src/emulate.c
    • src/riscv.h
    • src/softfloat
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful
    • Fb Infer (Static Code Analysis) - ✖︎ Failed

AI Code Review powered by Bito Logo

@jserv jserv force-pushed the modular-softfloat branch from 2b375ea to d3275eb Compare February 7, 2025 18:49
Copy link

bito-code-review bot commented Feb 7, 2025

Code Review Agent Run #990067

Actionable Suggestions - 0
Review Details
  • Files reviewed - 7 · Commit Range: d3275eb..d3275eb
    • .gitmodules
    • Makefile
    • mk/softfloat.mk
    • mk/toolchain.mk
    • src/emulate.c
    • src/riscv.h
    • src/softfloat
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful
    • Fb Infer (Static Code Analysis) - ✖︎ Failed

AI Code Review powered by Bito Logo

@jserv jserv force-pushed the modular-softfloat branch from d3275eb to 8bcf084 Compare February 7, 2025 18:57
Copy link

bito-code-review bot commented Feb 7, 2025

Code Review Agent Run #81a04a

Actionable Suggestions - 1
  • mk/softfloat.mk - 1
    • Consider grouping warning flags separately · Line 3-10
Review Details
  • Files reviewed - 7 · Commit Range: 8bcf084..8bcf084
    • .gitmodules
    • Makefile
    • mk/softfloat.mk
    • mk/toolchain.mk
    • src/emulate.c
    • src/riscv.h
    • src/softfloat
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful
    • Fb Infer (Static Code Analysis) - ✖︎ Failed

AI Code Review powered by Bito Logo

Replace custom Berkeley SoftFloat 3 package in 'src/softfloat' with the
upstream one. It streamlines build system onfiguration for consistency.
@jserv jserv force-pushed the modular-softfloat branch from 8bcf084 to b41f6fa Compare February 7, 2025 19:05
Copy link

bito-code-review bot commented Feb 7, 2025

Code Review Agent Run #917e75

Actionable Suggestions - 1
  • mk/softfloat.mk - 1
    • Missing line continuation character in makefile · Line 315-315
Review Details
  • Files reviewed - 7 · Commit Range: b41f6fa..b41f6fa
    • .gitmodules
    • Makefile
    • mk/softfloat.mk
    • mk/toolchain.mk
    • src/emulate.c
    • src/riscv.h
    • src/softfloat
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful
    • Fb Infer (Static Code Analysis) - ✖︎ Failed

AI Code Review powered by Bito Logo

@jserv jserv added this to the release-2025.1 milestone Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant