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

fix bug on the realization path of printf function #4

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions C906_RTL_FACTORY/gen_rtl/mmu/rtl/sysmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,26 @@ limitations under the License.
// ADDR is 28-bit, 4K address
// Flag includes: Strong Order, Cacheable, Bufferable, Shareable, Security

`define SYSMAP_BASE_ADDR0 28'h8ffff
`define SYSMAP_BASE_ADDR0 28'h01000
`define SYSMAP_FLG0 5'b01111

`define SYSMAP_BASE_ADDR1 28'hbffff
`define SYSMAP_BASE_ADDR1 28'h02000
`define SYSMAP_FLG1 5'b10011

`define SYSMAP_BASE_ADDR2 28'hcffff
`define SYSMAP_FLG2 5'b00011
`define SYSMAP_BASE_ADDR2 28'hd0000
`define SYSMAP_FLG2 5'b10011

`define SYSMAP_BASE_ADDR3 28'heffff
`define SYSMAP_FLG3 5'b01101
`define SYSMAP_FLG3 5'b01111

`define SYSMAP_BASE_ADDR4 28'hfffff
`define SYSMAP_FLG4 5'b01111

`define SYSMAP_BASE_ADDR5 28'h3ffffff
`define SYSMAP_BASE_ADDR5 28'h4000000
`define SYSMAP_FLG5 5'b01111

`define SYSMAP_BASE_ADDR6 28'h4ffffff
`define SYSMAP_FLG6 5'b10010
`define SYSMAP_BASE_ADDR6 28'h5000000
`define SYSMAP_FLG6 5'b10011

`define SYSMAP_BASE_ADDR7 28'hfffffff
`define SYSMAP_FLG7 5'b01111
Expand Down
2 changes: 1 addition & 1 deletion smart_run/tests/lib/clib/fputc.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ limitations under the License.
int fputc(int ch, FILE *stream)
{
asm(
"li x13, 0x6000fff8 \n\t"
"li x13, 0x10015000 \n\t"
"sw %0, 0(x13) \n\t"
: :"r" (ch): "x13" );
}
Expand Down
43 changes: 0 additions & 43 deletions smart_run/tests/lib/clib/printf.c

This file was deleted.

20 changes: 0 additions & 20 deletions smart_run/tests/lib/clib/printf.h

This file was deleted.